Skip to content

RtkPluginScreenShareTabButton

A tab button used in the plugin and screen share tab selector. Represents a single tab in the RtkActiveTabSelectorView.

Initializer parameters

ParameterTypeRequiredDefaultDescription
imageRtkImage?-The icon image for the tab button
titleString""The title text for the tab button
idString""A unique identifier for the tab button
appearanceRtkPluginScreenShareTabButtonAppearance-Appearance configuration for the tab button

Usage Examples

Basic Usage

Swift
import RealtimeKitUI
let tabButton = RtkPluginScreenShareTabButton(
image: RtkImage(image: UIImage(systemName: "square.and.arrow.up")),
title: "Screen Share"
)

With identifier

Swift
import RealtimeKitUI
let tabButton = RtkPluginScreenShareTabButton(
image: RtkImage(image: UIImage(systemName: "pencil.tip")),
title: "Whiteboard",
id: "whiteboard-plugin"
)