Type Safely

Type Safely

Use .toolbarColorScheme To Customise a Navigation Bar in iOS 16

Daily Coding Tip 145

Millie Sturgeon's avatar
Millie Sturgeon
Aug 03, 2022
∙ Paid
person submerged on body of water holding sparkler
Photo by Kristopher Roller on Unsplash

In my recent Daily Coding Tip, I gave an example of how to use .toolbarBackground to change the appearance of the navigation bar. This .toolbarColorScheme modifier works in a similar way, overriding the user’s colour scheme in order to show a dark background on the navigation bar when content scrolls behind it.

User's avatar

Continue reading this post for free, courtesy of Type Safely.

Or purchase a paid subscription.
© 2026 Type Safely · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture