compactAppearance
The appearance settings for a compact-height navigation bar.
Declaration
@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 property of UINavigationBar.
Use this property to apply appearance settings to the navigation bar based on the navigation item stored in the topItem property. If the top item’s compactAppearance property is nil, UIKit uses the navigation bar’s compact appearance settings.