<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 13.4.0 -",
    "macOS: 10.15.4 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/DatePickerStyle/compact",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI15DatePickerStylePA2A07CompactcdE0VRszrlE7compactAEvpZ"
  },
  "title" : "compact"
}
-->

# compact

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

```
@MainActor @export(implementation) @preconcurrency static var compact: CompactDatePickerStyle { get }
```

## Discussion

Use this style when space is constrained and users expect to make
specific date and time selections. Some variants may include rich
editing controls in a pop up.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)