Contents

preferredDatePickerStyle

The preferred style of the date picker.

Declaration

var preferredDatePickerStyle: UIDatePickerStyle { get set }

Discussion

Use this property to specify the display style that you prefer. If the style changes, the date picker may generate a layout pass to update the display.

The default style is UIDatePickerStyle.automatic. For a list of styles, see UIDatePickerStyle.

See Also

Configuring the date picker style