← Cloudflare Realtime / realtime / realtimekit / ui-kit / api-reference / ios
AppTheme
The application theme singleton that provides pre-configured appearance objects for UI components.
Use AppTheme.shared to access default appearances or call setUp(theme:) to apply a custom theme.
Access
let theme = AppTheme.sharedMethods
| Method | Return Type | Description |
|---|---|---|
setUp(theme: AppThemeProtocol) |
Void |
Applies a custom theme conforming to AppThemeProtocol |
Usage Examples
Access default theme
import RealtimeKitUI
let theme = AppTheme.shared
let titleAppearance = theme.meetingTitleAppearance
let clockAppearance = theme.clockViewAppearanceApply a custom theme
import RealtimeKitUI
class CustomTheme: AppThemeProtocol {
// Implement required appearance properties
}
let customTheme = CustomTheme()
AppTheme.shared.setUp(theme: customTheme)