All Projects → KenShih522 → Kstimeline

KenShih522 / Kstimeline

Licence: mit
Simple custom timeline written in swift

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Kstimeline

Daterangepicker
The best (?) date range picker control for OS X.
Stars: ✭ 126 (-19.75%)
Mutual labels:  cocoa
Komet
Cocoa editor for creating commit messages
Stars: ✭ 131 (-16.56%)
Mutual labels:  cocoa
Covid 19 Timeline
请关注端点星案和张展。// 以社会学年鉴模式体例规范地统编自2019年末起武汉新冠肺炎疫情进展的时间线(2019年12月1日-2020年4月24日)。感谢志愿者的辛劳操作。A sociology timeline (2019.12.1-2020.4.24) on how Wuhan Coronavirus break and spread, edited by anonymous volunteers.
Stars: ✭ 142 (-9.55%)
Mutual labels:  timeline
Alternativeicon Example
😱 Change your iOS application's icon programmatically since iOS 10.3
Stars: ✭ 129 (-17.83%)
Mutual labels:  cocoa
Reusablekit
Generic reusables for UICollectionView and UITableView
Stars: ✭ 130 (-17.2%)
Mutual labels:  cocoa
Cocoaai
🤖 The Cocoa Artificial Intelligence Lab
Stars: ✭ 134 (-14.65%)
Mutual labels:  cocoa
Markline
Ⓜ️ Timeline via Markdown.
Stars: ✭ 121 (-22.93%)
Mutual labels:  timeline
Crosswindow
💻📱 A cross platform system abstraction library written in C++ for managing windows and performing OS tasks.
Stars: ✭ 155 (-1.27%)
Mutual labels:  cocoa
Github Timeline
View other users' timeline
Stars: ✭ 131 (-16.56%)
Mutual labels:  timeline
Timeline Plus
Timeline - chronological visualization of your data
Stars: ✭ 140 (-10.83%)
Mutual labels:  timeline
Timeline
直观地显示各个历史时间段及历史地图。Visually display various historical time periods and historical maps.
Stars: ✭ 127 (-19.11%)
Mutual labels:  timeline
React Gantt
A gantt chart for react
Stars: ✭ 129 (-17.83%)
Mutual labels:  timeline
Life Calendar
A look at the big picture.
Stars: ✭ 139 (-11.46%)
Mutual labels:  timeline
Wilderness
An SVG animation API
Stars: ✭ 127 (-19.11%)
Mutual labels:  timeline
Platypus
Create native Mac applications from command line scripts.
Stars: ✭ 1,893 (+1105.73%)
Mutual labels:  cocoa
Luexpandabletableview
A subclass of UITableView with expandable and collapsible sections
Stars: ✭ 125 (-20.38%)
Mutual labels:  cocoa
Tweetscape
A WebVR experience displaying tweets in real-time along a 3D timeline
Stars: ✭ 132 (-15.92%)
Mutual labels:  timeline
Usbdeviceswift
wrapper for IOKit.usb and IOKit.hid written on pure Swift that allows you convenient work with USB devices
Stars: ✭ 156 (-0.64%)
Mutual labels:  cocoa
Flutter app
🔥🔥🔥本项目包括各种基本控件使用(Text、TextField、Icon、Image、Listview、Gridview、Picker、Stepper、Dialog、Slider、Row、Appbar、Sizebox、BottomSheet、Chip、Dismissible、FlutterLogo、Check、Switch、TabBar、BottomNavigationBar、Sliver等)、豆瓣电影、tubitv、每日一文、和天气、百姓生活、随机诗词、联系人、句子迷、好奇心日报、有道精品课、高德定位、音乐播放器🎵、追书神器等板块
Stars: ✭ 2,140 (+1263.06%)
Mutual labels:  timeline
Node Twitter Api
Simple module for using Twitter's API in node.js
Stars: ✭ 138 (-12.1%)
Mutual labels:  timeline

KSTimeline

KSTimeline, written in swift, is a simple and customizable view which supports showing a series of events in a vertically time-sorted structure.

Preview

Demo1

  • adjust the time scale by pinch gesture
  • display different time mode according to time scale

Demo2

  • play next event automatically
  • scroll to seek video
  • press > to next video
  • press < to previous video

Usage

Delegate

@objc public protocol KSTimelineDelegate: NSObjectProtocol {
    
    func timelineStartScroll(_ timeline: KSTimelineView)
    
    func timelineEndScroll(_ timeline: KSTimelineView)
    
    func timeline(_ timeline: KSTimelineView, didScrollTo date: Date)
    
}

Datasource

@objc public protocol KSTimelineDatasource: NSObjectProtocol {
    
    func numberOfEvents(_ timeline: KSTimelineView) -> Int
    
    func event(_ timeline: KSTimelineView, at index: Int) -> KSTimelineEvent
    
}

KSTimelineEvent

@objc public class KSTimelineEvent: NSObject {
    
    public var start: Date
    
    public var end: Date
    
    public var duration: Double
    
    public var videoURL: URL
    
    public init(start: Date, end: Date, duration: Double, videoURL: URL) {
        
        self.start = start
        
        self.end = end
        
        self.duration = duration
        
        self.videoURL = videoURL
        
        super.init()
        
    }
        
}

Installation

Cocoapods

KSTimeline can be added to your project using CocoaPods by adding the following line to your Podfile:

pod 'KSTimeline'
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].