RtkImage
A struct that wraps a UIImage or a URL for image content.
Used throughout the UI Kit for icons, avatars, and custom images.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
image | UIImage? | ❌ | nil | A local UIImage to display |
url | URL? | ❌ | nil | A remote URL to load the image from |
import RealtimeKitUI
let rtkImage = RtkImage(image: UIImage(systemName: "mic"))import RealtimeKitUI
let rtkImage = RtkImage(url: URL(string: "https://example.com/avatar.png"))