FieldDatePickerStyle

A date picker style that displays the components in an editable field

FieldDatePickerStyle - 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(.field)
}

Found an issue or have a suggestion?

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