New in SwiftUI 4: MultiDatePicker
SwiftUI 4 came with another cool new addition,
MultiDatePicker. This new control allows us to pick multiple dates.
Let’s get started with an example. Creating
MultiDatePicker is easy, all we need is a
State variable to store selected dates and
MultiDatePicker view itself.
State variable os passed as selection
binding value into the
MutiDatePicker as shown below: