Appearance & Theming
Apply a consistent global theme to all screens presented by OnsideKit using OnsideAppearance.
Set the global theme
@MainActor func setThemeMode(_ themeMode: OnsideUIThemeMode?)Onside.appearance().setThemeMode(.dark)func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
Onside.initialize()
Onside.appearance().setThemeMode(.dark) // force dark for all OnsideKit screens
return true
}Theme resolution
Last updated
Was this helpful?