A horizontally scrollable tab selector for switching between plugins and screen shares.
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
buttons |
[RtkPluginScreenShareTabButton] |
- | - | The array of tab buttons in the selector |
| Method | Return Type | Description |
|---|---|---|
scrollToVisible(button:) |
Void |
Scrolls the tab selector to make the specified button visible |
setAndDisplayButtons(_:) |
Void |
Sets and displays the provided array of tab buttons |
import RealtimeKitUI
let tabSelector = RtkActiveTabSelectorView()
let buttons = [
RtkPluginScreenShareTabButton(image: nil, title: "Screen Share"),
RtkPluginScreenShareTabButton(image: nil, title: "Whiteboard")
]
tabSelector.setAndDisplayButtons(buttons)
view.addSubview(tabSelector)