Legacy customizations
Customize appearance information directly on the navigation bar object.
Overview
In iOS 13 and later, customize your navigation bar using the standardAppearance, compactAppearance, and scrollEdgeAppearance properties. You may continue to use these legacy accessors to customize your navigation bar’s appearance directly, but you must update the appearance for different bar configurations yourself.
Topics
Configuring the navigation bar
Setting the bar’s style
Configuring the title
titleTextAttributeslargeTitleTextAttributestitleVerticalPositionAdjustment(for:)setTitleVerticalPositionAdjustment(_:for:)
Configuring bar button items
Configuring the Back button
Changing the background
barTintColorbackgroundImage(for:)setBackgroundImage(_:for:)backgroundImage(for:barMetrics:)setBackgroundImage(_:for:barMetrics:)