toolbarForegroundStyle has no effect on navigation title

On Apple Watch, I have used toolbarForegroundStyle view modifier to change the color of the navigation title programmatically to offer theming support for users.

In watchOS 26 it no longer seem to have any effect. For example with

.toolbarForegroundStyle(.blue, for: .navigationBar)

the title color still uses the AccentColor from the Assets catalog.

Is there any other setup required to get this working, or is it a bug?

Filed a feedback FB18527395

From the watchOS 26 Beta 2 Release Notes:

Known Issues

  • toolbarForegroundStyle no longer tints toolbar button labels on watchOS. (151487439)

    Workaround: Tint the button label directly, using Text("foo").foregroundStyle(...).

Ah thanks I missed that in the release notes.

Using the workaround the largeTitle doesn't work which is a bummer. Hopefully toolbarForegroundStyle gets fixed before release.

toolbarForegroundStyle has no effect on navigation title
 
 
Q