iOS Hour/Minute Picker Initial Duration (#1056)
This commit is contained in:
parent
b4be96e6ac
commit
957022e09d
|
@ -16,6 +16,7 @@ struct HourMinutePicker: UIViewRepresentable {
|
|||
let picker = UIDatePicker(frame: .zero)
|
||||
picker.translatesAutoresizingMaskIntoConstraints = false
|
||||
picker.datePickerMode = .countDownTimer
|
||||
picker.countDownDuration = interval.wrappedValue
|
||||
|
||||
context.coordinator.add(picker: picker)
|
||||
context.coordinator.interval = interval
|
||||
|
|
Loading…
Reference in New Issue