IOS TOPICS

IOS Introduction
Swift UI Label
Swift UI Button
Swift UI Text Field
Swift UI Slider
Swift UI Switch
Swift UI Stepper
Swift UI Date Picker
Swift UI Segmented Control
Views
Table View
Collection Views
SCROLL VIEW
iOS Content View
iOS View Controllers
iOS Bar interface
iOS Navigation interface
iOS Architect Pattern
iOS Libraries
iOS Web request and parsing
iOS user defaults
iOS Coredata and database

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:

ios output