From 957022e09d11db6bdf5b6a754780017b33c9cbde Mon Sep 17 00:00:00 2001 From: Ethan Pippin Date: Thu, 16 May 2024 07:32:25 -0600 Subject: [PATCH] iOS Hour/Minute Picker Initial Duration (#1056) --- Swiftfin/Components/HourMinutePicker.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Swiftfin/Components/HourMinutePicker.swift b/Swiftfin/Components/HourMinutePicker.swift index a2b00e55..b5573d34 100644 --- a/Swiftfin/Components/HourMinutePicker.swift +++ b/Swiftfin/Components/HourMinutePicker.swift @@ -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