RtkButton
A versatile button that follows the RTK Design System. Supports multiple styles, states, and sizes.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
style | Style | ❌ | .solid | The button style (solid, line, icon-left, and others) |
rtkButtonState | States | ❌ | .active | The initial state of the button |
size | Size | ❌ | .large | The size of the button |
appearance | RtkButtonAppearance | ❌ | - | Appearance configuration for colors and fonts |
import RealtimeKitUI
let button = RtkButton()button.setTitle("Join", for: .normal)view.addSubview(button)import RealtimeKitUI
let button = RtkButton( style: .line, rtkButtonState: .active, size: .large)button.setTitle("Cancel", for: .normal)view.addSubview(button)