Post

Replies

Boosts

Views

Activity

Reply to UIDatePicker as countdown not triggering Value Changed event
Hi guys, I was able to fix this issue in SwiftUI (using a "UIDatePicker" created with "UIViewRepresentable") by adding it an "onAppear" and inside the closure updating the state variable used for tracking the duration to any value that is not the default value. This forces a programmatic update on the first render which then allows the picker to work correctly on the first spin.
Feb ’23