https://github.com/GetLinks/GLTimeline
https://github.com/GetLinks/GLTimeline
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/GetLinks/GLTimeline
- Owner: GetLinks
- License: mit
- Created: 2016-11-02T09:18:28.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-11-02T12:55:07.000Z (over 8 years ago)
- Last Synced: 2025-02-11T03:32:11.475Z (2 months ago)
- Language: Swift
- Size: 98.6 KB
- Stars: 11
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-swift-lib-hunt - GLTimeline - Beautiful timeline library, not well documented. NOT Recommended for new iOS Developers (UI)
- awesome-swift-lib-hunt - GLTimeline - Beautiful timeline library, not well documented. NOT Recommended for new iOS Developers (UI)
README
# GLTimeline
GLTimeline is a simple timeline view implemented by UIView written in Swift 3.0 that original use in Getlinks Application Project.

## Requirements
- iOS 8.0 or higher
- Swift 3.0## Installation
- [CocoaPods](http://cocoapods.org/):
```ruby
pod "GLTimeline"
```## Usage
### Import
```swift
import GLTimeline
```### Integration
We recommend to use the timeline view in your storyboard. Just add a plain view and set the custom class and the module property to GLTimelineView.
### Timeline Customization
`lineType` set type for each timelineview by pass indexPath and tableView into `getTimeLineType()`
`lineColor` the color of point and line
`pointRadius` the point size
`lineWidth` the width of line```swift
@IBOutlet weak var timeLineView: GLTimelineView!
timeLineView.lineType = GLTimelineView.getTimeLineType(position,items: numberOfItems)
timeLineView.lineColor = UIColor.black
timeLineView.pointRadius = 5.0
timeLineView.lineWidth = 1.0
```##[View Releases]("https://github.com/GetLinks/GLTimeline/releases")
If you Watch this repository, GitHub will send you an email every time I publish an update.
## License
GLTimeline is available under the MIT license. See the LICENSE file for more info.