---
title: field
framework: swiftui
role: symbol
role_heading: Type Property
path: swiftui/datepickerstyle/field
---

# field

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

## Declaration

```swift
@MainActor @preconcurrency static var field: FieldDatePickerStyle { get }
```

## Discussion

Discussion You can use this style when space is constrained and users expect to make specific date and time selections. However, you should generally use stepperField instead of this style, unless your your app requires hiding the stepper.

## See Also

### Getting built-in date picker styles

- [automatic](swiftui/datepickerstyle/automatic.md)
- [compact](swiftui/datepickerstyle/compact.md)
- [graphical](swiftui/datepickerstyle/graphical.md)
- [stepperField](swiftui/datepickerstyle/stepperfield.md)
- [wheel](swiftui/datepickerstyle/wheel.md)
