TimelineView 0.4.0

TimelineView 0.4.0

Maintained by Devansh.



  • By
  • Devansh Vyas

TimelineView

Version License Platform

TimelineView is a simplest component to show the timly updates.

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

Cocoapods

TimelineView is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'TimelineView'

Usage

Adding TimelineView

Add UIView in your UIViewController and give its custom class to TimelineView,

alt TimelineView

Give outlet to that view and then give Timeline data to that view as follows:

var darkGreen = UIColor.init(red: 2/255, green: 138/255, blue: 75/255, alpha: 1)
var lightBlack = UIColor(red:37/255, green:48/255, blue:64/255, alpha:1)
timline.timelineData = [
    Timeline(title: "Order Created", timeString: "Apr", desc: "Order details are subject to area which you have selected", actionPerformed: [], titleColor: lightBlack, actionItemColor: lightBlack),
    Timeline(title: "Tank Reading", timeString: "Mar", desc: "", actionPerformed: ["Order Delivered","Order Loaded"], titleColor: lightBlack, actionItemColor: lightBlack),
    Timeline(title: "Order Created", timeString: "Feb", desc: "", actionPerformed: ["Maintenance Req. Raised"], titleColor: darkGreen,actionItemColor: lightBlack),
    Timeline(title: "", timeString: "Jan", desc: "", actionPerformed: ["Tank Dips Missed","Credit Note Received","","","","","","Price Book Updated"], titleColor: lightBlack,actionItemColor: darkGreen)
]

Author

Devansh Vyas

License

TimelineView is available under the MIT license. See the LICENSE file for more info.