Skip to content

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

Swift
let theme = AppTheme.shared

Methods

MethodReturn TypeDescription
setUp(theme: AppThemeProtocol)VoidApplies a custom theme conforming to AppThemeProtocol

Usage Examples

Access default theme

Swift
import RealtimeKitUI
let theme = AppTheme.shared
let titleAppearance = theme.meetingTitleAppearance
let clockAppearance = theme.clockViewAppearance

Apply a custom theme

Swift
import RealtimeKitUI
class CustomTheme: AppThemeProtocol {
// Implement required appearance properties
}
let customTheme = CustomTheme()
AppTheme.shared.setUp(theme: customTheme)