TimePicker alternatives and similar libraries
Based on the "Date & Time" category.
Alternatively, view TimePicker alternatives based on common mentions on social networks and blogs.
-
SwiftDate
๐ Toolkit to parse, validate, manipulate, compare and display dates, time & timezones in Swift. -
NSDate-TimeAgo
DISCONTINUED. A "time ago", "time since", "relative date", or "fuzzy date" category for NSDate and iOS, Objective-C, Cocoa Touch, iPhone, iPad. -
TrueTime
NTP library for Swift and Objective-C. Get the true time impervious to device clock changes. -
iso-8601-date-formatter
A Cocoa NSFormatter subclass to convert dates to and from ISO-8601-formatted strings. Supports calendar, week, and ordinal formats. -
10Clock
This Control is a beautiful time-of-day picker heavily inspired by the iOS 10 "Bedtime" timer. -
TimeZonePicker
A TimeZonePicker UIViewController similar to the iOS Settings app. Search and select from a range of cities and countries to find your most suitable time zone.
CodeRabbit: AI Code Reviews for Developers
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of TimePicker or a related project?
README
TimePicker
Better TimePicker for iOS
Requirements
- Swift 5.0
- iOS 10.0+
- Xcode 10.2+
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 labels
color: .black,
font: .systemFont(
ofSize: 28,
weight: .semibold
)
),
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
- [ ] Swiping bubbles to hint gestures
- [ ] Code documentation
License
The library is available as open source under the terms of the MIT License.
*Note that all licence references and agreements mentioned in the TimePicker README section above
are relevant to that project's source code only.