itsmeichigo / DateTimePicker
- пятница, 21 октября 2016 г. в 03:17:40
Swift
A nicer iOS UI component for picking date and time
A nicer iOS UI component for picking date and time.
Just add the following to your podfile
pod 'DateTimePicker'
Drag and drop folder Source
to your project.
You can easily show and customize the component's colors
let picker = DateTimePicker.show()
picker.highlightColor = UIColor(red: 255.0/255.0, green: 138.0/255.0, blue: 138.0/255.0, alpha: 1)
picker.completionHandler = { date in
// do something after tapping done
}
Contributions for bug fixing or improvements are welcome. Feel free to submit a pull request.
DateTimePicker is available under the MIT license. See the LICENSE file for more info.