iOS components Theming
stanceTheme(_:)
StableModifier that applies a Stance appearance (system, light, dark or high contrast) to a view hierarchy.
- PlatformiOS and iPadOS, SwiftUI
- Builds on
Environment - Kindmodifier
Preview
Rendered by the SwiftUI library, not drawn by hand.






Usage
Text("Preview").stanceTheme(.highContrast)Accessibility
- Sets tint, foreground and canvas background from tokens