LFTimePicker 0.4

LFTimePicker 0.4

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Jul 2017
SwiftSwift Version 3.0
SPMSupports SPM

Maintained by Lucas Farah.



LFTimePicker

Custom Time Picker ViewController with Selection of start and end times in Swift 🔶. Based on Adey Salyard’s design @ Dribbble


One to two paragraph statement about your product and what it does.

ezgif com-resize

Features

  • [x] 12h and 24h formats

Requirements

  • iOS 8.0+
  • Xcode 7.3

Installation

Swift Package Manager

Add this project on your Package.swift

import PackageDescription

let package = Package(
  name: "LFTimePicker"
)

Manually

  1. Download and drop LFTimePickerController.swift in your project.
  2. Congratulations!

Usage example

//1. Create a LFTimePickerController
let timePicker = LFTimePickerController()

//2. Present the timePicker
self.navigationController?.pushViewController(timePicker, animated: true)

//3. Implement the LFTimePickerControllerDelegate
extension ExampleViewController: LFTimePickerControllerDelegate {

    func didPickTime(start: String, end: String) {

        print(start)
        print(end)
    }
}

Contribute

We would love for you to contribute to LFTimePicker, check the LICENSE file for more info.

Meta

Lucas Farah – @7farah7[email protected]

Distributed under the MIT license. See LICENSE for more information.

https://github.com/awesome-labs