← Cloudflare Realtime / realtime / realtimekit / ui-kit / api-reference / ios
RtkLabel
Stylovaný popisek, který používá barvy a písma z designových tokenů RTK Design System.
Parametry inicializátoru
| Parametr | Typ | Povinné | Výchozí | Popis |
|---|---|---|---|---|
appearance |
RtkTextAppearance |
❌ | - | Konfigurace vzhledu textu pro písmo a barvu |
Příklady použití
Základní použití
import RealtimeKitUI
let label = RtkLabel()
label.text = "Meeting Room"
view.addSubview(label)S vlastním vzhledem
import RealtimeKitUI
let appearance = RtkTextAppearance(
font: UIFont.systemFont(ofSize: 16, weight: .semibold),
textColor: .white
)
let label = RtkLabel(appearance: appearance)
label.text = "Meeting Room"
view.addSubview(label)