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

# compactScrollEdgeAppearance

The appearance settings for a compact-height navigation bar when the edge of scrollable content aligns with the edge of the navigation bar.

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

## Discussion

When a compact-height navigation bar displays the top navigation item, the appearance setting in this property overrides the settings in the [`compactScrollEdgeAppearance`](/documentation/UIKit/UINavigationBar/compactScrollEdgeAppearance) 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 [`compactScrollEdgeAppearance`](/documentation/UIKit/UINavigationItem/compactScrollEdgeAppearance) property is `nil`, UIKit uses the navigation bar’s compact scroll edge appearance.

---

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)