UI コンポーネント向けに、あらかじめ設定された外観オブジェクトを提供するアプリケーションテーマのシングルトンです。
デフォルトの外観は AppTheme.shared からアクセスします。カスタムテーマを適用するには setUp(theme:) を呼び出します。
let theme = AppTheme.shared| メソッド | 戻り値の型 | 説明 |
|---|---|---|
setUp(theme: AppThemeProtocol) |
Void |
AppThemeProtocol に準拠したカスタムテーマを適用します |
import RealtimeKitUI
let theme = AppTheme.shared
let titleAppearance = theme.meetingTitleAppearance
let clockAppearance = theme.clockViewAppearanceimport RealtimeKitUI
class CustomTheme: AppThemeProtocol {
// Implement required appearance properties
}
let customTheme = CustomTheme()
AppTheme.shared.setUp(theme: customTheme)