Skip to content

RtkLabel

A themed label that uses design token colors and fonts from the RTK Design System.

Initializer parameters

ParameterTypeRequiredDefaultDescription
appearanceRtkTextAppearance-Text appearance configuration for font and color

Usage Examples

Basic Usage

Swift
import RealtimeKitUI
let label = RtkLabel()
label.text = "Meeting Room"
view.addSubview(label)

With custom appearance

Swift
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)