Customise the Date picker
Customise the Date picker
To Customise the Date picker by wrapping it in a Form
Code:
struct ContentView: View {
@State var birthday = Date()
var body: some View {
Form {
DatePicker("Enter your birthday", selection: $birthday, displayedComponents: .date)
}.padding()
}
}
Output: