- December 17, 2024
- Mins Read
Better TimePicker for iOS
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”
let timePicker = TimePicker()
view.addSubview(timePicker)
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
)
)
A vertical stackview which takes subviews with different widths and adds them to it's rows with paddings, spacings etc.
AudioManager is a Swift package that provides a modular and easy-to-use interface for implementing audio feedback in your applications. It ...