Type Safely

Type Safely

Use .toolbarBackground To Customise a Navigation Bar in iOS 16

Daily Coding Tip 140

Millie Sturgeon's avatar
Millie Sturgeon
Jul 29, 2022
∙ Paid
man standing on stone looking at sunset
Photo by Joshua Earle on Unsplash

Here’s a way to change the colour of a toolbar, in this case the navigation bar. I’ve put a NavigationLink inside a NavigationStack, and this requires the user to tap it in order to go to a second screen. That destination screen is a List that displays items numbered from zero to 10.

The purpose of this is to give scrol…

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