Initialzing DatePicker in beta 4

Does anybody know how this is done? I see where the warning says to use Labels. I imagine they mean argument labels.

Answered by SpaceMan in 372419022

Found the solution.


DatePicker("The Date",
                    selection: $arriveDate,
                    in: ...maxDate,
                    displayedComponents: [.date]
                )
Accepted Answer

Found the solution.


DatePicker("The Date",
                    selection: $arriveDate,
                    in: ...maxDate,
                    displayedComponents: [.date]
                )
Initialzing DatePicker in beta 4
 
 
Q