Latest 0.0.5
License MIT
Platforms ios 8.0


Build Status
Pod Version
Pod License
Dependency Status

This library provides an smart time frame. For convenience, we added UI elements like WLTimePointer, WLTimeFrameView.


  • [x] scroll time frame for 24hours


  • iOS 8.0 or later
  • Xcode 9.0 or later

Getting Started

  • Read this Readme doc


  • If you need help, you can reach me via [email protected]
  • If you’d like to ask a general question,please kindly send me an email to [email protected]
  • If you found a bug, open an issue.
  • If you have a feature request, open an issue.
  • If you want to contribute, submit a pull request.
  • If you want to learn more about me,click to my page

How To Use

  • Swift
import WLTimeFrame

let source:[WLTimeSpaceModel] = [WLTimeSpaceModel(startTime: 180.0, endTime: 220.0),WLTimeSpaceModel(startTime: 300.0, endTime: 400.0)]
let frameView: WLTimeFrameView = WLTimeFrameView.init(frame: CGRect.init(x: 0.0, y: 100.0, width: UIScreen.main.bounds.width, height: 66.0))
frameView.source = source
frameView.themeColor = UIColor.gray/*设置主题背景颜色*/
frameView.timeFrameColor =*设置时间片段颜色*/
frameView.pointer?.pointerColor =*设置指针颜色*/
frameView.delegate = self


func endDragging(at time:Date)
func beginScroll(at time:Date)
func didScroll(at time:Date)
func endDecelerating(at time:Date)
  • For details about how to use the library and clear examples


There are tow ways to use WLTimeFrameView in your project:

  • using CocoaPods
  • by cloning the project into your repository

Installation with CocoaPods

CocoaPods is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party libraries in your projects. See the Get Started section for more details.


platform :ios, '8.0'
pod 'WLTimeFrameView'

If you are using Swift, be sure to add use_frameworks! and set your target to iOS 8+:

platform :ios, '8.0'



All source code is licensed under the MIT License.

Latest podspec

    "name": "WLTimeFrameView",
    "version": "0.0.5",
    "summary": "Scroll time frame for 24hours.",
    "description": "This library provides an smart time frame. For convenience, we added UI elements like WLTimePointer, WLTimeFrameView",
    "homepage": "",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    "authors": {
        "luowanglin": "[email protected]"
    "platforms": {
        "ios": "8.0"
    "source": {
        "git": "",
        "tag": "0.0.5"
    "source_files": "WLTimeFrameView/*.swift"

Pin It on Pinterest

Share This