StepperFieldDatePickerStyle

A system style that displays the components in an editable field, with adjoining stepper that can increment/decrement the selected component

StepperFieldDatePickerStyle - macOS Light Mode Preview

Platform Compatibility

macOS 10.15+

Tags

SwiftUI Code

Docs
@State var date = Date()

var body: some View {
  DatePicker("Select Date", selection: $date)
    .datePickerStyle(.stepperField)
}

Found an issue or have a suggestion?

Created: June 4, 2025Updated: June 5, 2025