FieldDatePickerStyle
A date picker style that displays the components in an editable field
Platform Compatibility
macOS 10.15+
Tags
SwiftUI Code
@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