iOS Hour/Minute Picker Initial Duration (#1056)

This commit is contained in:
Ethan Pippin 2024-05-16 07:32:25 -06:00 committed by GitHub
parent b4be96e6ac
commit 957022e09d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -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