Skip to content

iOS components Theming

StanceThemeProvider

Stable

Applies the Stance theme at the app root, persists the preference and avoids a wrong-theme flash at launch.

  • PlatformiOS and iPadOS, SwiftUI
  • Builds onEnvironment, AppStorage
  • Kindview

Usage

swift
StanceThemeProvider { Text("Hello") }

Accessibility

  • System mode follows the colour scheme and Increase Contrast
  • Preference is read before the first frame

On other platforms