iOS components Theming
stanceScopedTheme(_:)
StableScopes a fixed theme to a subtree, for inverted sections and side-by-side previews.
- PlatformiOS and iPadOS, SwiftUI
- Builds on
Environment - Kindmodifier
Preview
Rendered by the SwiftUI library, not drawn by hand.






Usage
Text("Inverted").stanceScopedTheme(.dark)Accessibility
- Scoped themes keep the same verified contrast as page themes