---
title: UIDatePickerStyle
framework: uikit
role: symbol
role_heading: Enumeration
path: uikit/uidatepickerstyle
---

# UIDatePickerStyle

Styles that determine the appearance of a date picker.

## Declaration

```swift
enum UIDatePickerStyle
```

## Overview

Overview A date picker style determines how your app displays the date picker value and its editor. For instance, a date picker with a datePickerMode of UIDatePicker.Mode.dateAndTime and datePickerStyle of UIDatePickerStyle.compact displays the date picker’s value as a label that the user can tap to view a calendar-style editor. On the other hand, the same date picker using the UIDatePickerStyle.inline style displays a view that lets the user edit the value without having to tap the label shown in the UIDatePickerStyle.compact style.

## Topics

### Styles

- [UIDatePickerStyle.automatic](uikit/uidatepickerstyle/automatic.md)
- [UIDatePickerStyle.compact](uikit/uidatepickerstyle/compact.md)
- [UIDatePickerStyle.inline](uikit/uidatepickerstyle/inline.md)
- [UIDatePickerStyle.wheels](uikit/uidatepickerstyle/wheels.md)

### Initializers

- [init(rawValue:)](uikit/uidatepickerstyle/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Configuring the date picker style

- [datePickerStyle](uikit/uidatepicker/datepickerstyle.md)
- [preferredDatePickerStyle](uikit/uidatepicker/preferreddatepickerstyle.md)
