I have a DatePicker
on my app and the user can't select a past date, because I'm creating a notification out of it
How can I implement a minimumDate
equivalent in SwiftUI?
I tried creating an alert on my save button using “if date < Date()
, else show alert”, but it didn't work.
You can provide a range to
DatePicker
:Source: https://developer.apple.com/documentation/swiftui/datepicker