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.

Accepted Reply

Found the solution.


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

Replies

Found the solution.


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