CompactDatePickerStyle

A date picker style that displays the components in a compact, textual format.

StructureiOS 14.0+macCatalyst 13.4+macOS 10.15.4+CompactDatePickerStyle in SwiftUI

Declaration

React
type CompactDatePickerStyle = SwiftOpaque<'CompactDatePickerStyle'>;
Swift
nonisolated struct CompactDatePickerStyle

Overview

You can also use DatePickerStyle.compact to construct this style.

From Apple’s SwiftUI documentation. Code samples there are Swift.

See also

More in Styles.