DatePicker Colors
Customizing the colors of the date picker
Platform Compatibility
Tags
SwiftUI Code
@State var date = Date()
var body: some View {
DatePicker("Select Date", selection: $date)
.tint(.red)
}Customizing the colors of the date picker
@State var date = Date()
var body: some View {
DatePicker("Select Date", selection: $date)
.tint(.red)
}Creates an instance that selects multiple dates on or after some start date
A system style that displays the components in an editable field, with adjoining stepper that can increment/decrement the selected component
A date picker style that displays each component as columns in a scrollable wheel
Removes the sidebar toggle toolbar item a NavigationSplitView adds by default.
A type of slider content that creates content by iterating over a collection.