Contents

scrollEdgeAppearance

The appearance settings for the navigation bar when the edge of scrollable content aligns with the edge of the navigation bar.

Declaration

@NSCopying var scrollEdgeAppearance: UINavigationBarAppearance? { get set }

Discussion

When a navigation controller contains a navigation bar and a scroll view, part of the scroll view’s content appears underneath the navigation bar. If the edge of the scrolled content reaches that bar, UIKit applies the appearance settings in this property.

If the value of this property is nil, UIKit uses the settings found in the standardAppearance property, modified to use a transparent background. If no navigation controller manages your navigation bar, UIKit ignores this property and uses the standard appearance of the navigation bar.

When running on apps that use iOS 14 or earlier, this property applies to navigation bars with large titles. In iOS 15, this property applies to all navigation bars.

See Also

Customizing the bar’s appearance