Skip to content

iOS components Navigation

stanceNavigationChrome()

Stable

Modifier that themes navigation and tab bar tint while leaving system bar materials untouched.

  • PlatformiOS and iPadOS, SwiftUI
  • Builds ontoolbarColorScheme
  • Kindmodifier

Preview

Rendered by the SwiftUI library, not drawn by hand.

stanceNavigationChrome() on iOS and iPadOSstanceNavigationChrome() on iOS and iPadOSstanceNavigationChrome() on iOS and iPadOS
stanceNavigationChrome(), Light appearance
Light
stanceNavigationChrome(), Dark appearance
Dark
stanceNavigationChrome(), High contrast appearance
High contrast

Usage

swift
Text("Screen").stanceNavigationChrome()

Accessibility

  • Bar content stays legible in all three themes