Type Safely

Type Safely

Share this post

Type Safely
Type Safely
Use .toolbarBackground To Customise a Navigation Bar in iOS 16

Use .toolbarBackground To Customise a Navigation Bar in iOS 16

Daily Coding Tip 140

Millie Sturgeon's avatar
Millie Sturgeon
Jul 29, 2022
∙ Paid

Share this post

Type Safely
Type Safely
Use .toolbarBackground To Customise a Navigation Bar in iOS 16
Share
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…

Keep reading with a 7-day free trial

Subscribe to Type Safely to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2025 Type Safely
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share