Skip to content

RtkActiveTabSelectorView

A horizontally scrollable tab selector for switching between plugins and screen shares.

Properties

PropertyTypeRequiredDefaultDescription
buttons[RtkPluginScreenShareTabButton]--The array of tab buttons in the selector

Methods

MethodReturn TypeDescription
scrollToVisible(button:)VoidScrolls the tab selector to make the specified button visible
setAndDisplayButtons(_:)VoidSets and displays the provided array of tab buttons

Usage Examples

Basic Usage

Swift
import RealtimeKitUI
let tabSelector = RtkActiveTabSelectorView()
let buttons = [
RtkPluginScreenShareTabButton(image: nil, title: "Screen Share"),
RtkPluginScreenShareTabButton(image: nil, title: "Whiteboard")
]
tabSelector.setAndDisplayButtons(buttons)
view.addSubview(tabSelector)