<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UINavigationItem/compactAppearance",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UINavigationItem(py)compactAppearance"
  },
  "title" : "compactAppearance"
}
-->

# compactAppearance

The appearance settings for a compact-height navigation bar.

```
@NSCopying var compactAppearance: UINavigationBarAppearance? { get set }
```

## Discussion

When the navigation bar displays the current navigation item, the appearance settings in this property override the settings provided by the [`compactAppearance`](/documentation/UIKit/UINavigationBar/compactAppearance) property of [`UINavigationBar`](/documentation/UIKit/UINavigationBar).

Use this property to apply appearance settings to the navigation bar based on the navigation item stored in the [`topItem`](/documentation/UIKit/UINavigationBar/topItem) property. If the top item’s [`compactAppearance`](/documentation/UIKit/UINavigationItem/compactAppearance) property is `nil`, UIKit uses the navigation bar’s compact appearance settings.

---

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)