Latest 0.0.2
Homepage https://github.com/Endore8/TimePicker
License MIT
Platforms ios 10.0, requires ARC
Authors

Better TimePicker for iOS

License: MIT

Requirements

  • Swift 3.0
  • iOS 10.0+
  • Xcode 8+

Installation

The easiest way is through CocoaPods. Simply add the dependency to your Podfile and then pod install:

pod 'TimePicker'

Or Carthage. Add the dependency to your Cartfile and then carthage update:

github "Endore8/TimePicker"

Usage

let timePicker = TimePicker()
view.addSubview(timePicker)

Config

timePicker.config = TimePickerConfig(
    text: TimePickerConfig.Text(                                //  Configurations for hh:mm a labels
    color: .black,
    font: .systemFont(
        ofSize: 28,
        weight: UIFontWeightSemibold
        )
    ),
    time: TimePickerConfig.Time(                                // Time calculator configs
        initial: TimePickerConfig.Time.initialTime,             // Initial time interval (0 - 24 * 60 * 60)
        step: TimePickerConfig.Time.timeStepRange.lowerBound,   // Minimum change step (0 - 30, minutes)
        format: TimePickerConfig.Time.Format.auto               // Time format
    )
)

ToDo

  • [ ] Tests
  • [ ] Optional haptic feedback
  • [ ] Code documentation

License

The library is available as open source under the terms of the MIT License.

Latest podspec

{
    "name": "TimePicker",
    "version": "0.0.2",
    "summary": "Better time picker for iOS",
    "homepage": "https://github.com/Endore8/TimePicker",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Oleh Stasula": "[email protected]"
    },
    "platforms": {
        "ios": "10.0"
    },
    "requires_arc": true,
    "source": {
        "git": "https://github.com/Endore8/TimePicker.git",
        "tag": "v0.0.2",
        "submodules": true
    },
    "source_files": "TimePicker/**/*.{h,swift}",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This