WheelDatePickerStyle
A date picker style that displays each component as columns in a scrollable wheel
Platform Compatibility
Tags
SwiftUI Code
@State var date = Date()
var body: some View {
DatePicker("Select Date", selection: $date)
.datePickerStyle(.wheel)
}Found an issue or have a suggestion?
More DatePicker Components
View allFuture DatePicker
Creates an instance that selects multiple dates on or after some start date
StepperFieldDatePickerStyle
A system style that displays the components in an editable field, with adjoining stepper that can increment/decrement the selected component
Explore Other Components
Browse allInsetGroupedListStyle
The list style that describes the behavior and appearance of an inset grouped list.
Color Variants
HierarchicalShapeStyle, a shape style that maps to one of the numbered content styles
Sheet Placement
Sets the placement of a presentation within the presenting view. This may fall back to center on small screens.
Concentric Rectangle
A concentric rectangle whose corner radii are defined from the same circle center as its parent element. The outermost parent is the device frame.
Image Label
Creates a label with an icon image and a title generated from a localized string.
Sheet Background
Sets the presentation background of the enclosing sheet using a shape style.