Skip to content

RtkParticipantCountView

A label that displays the current participant count. Automatically updates when participants join or leave the meeting.

Initializer parameters

ParameterTypeRequiredDefaultDescription
meetingRealtimeKitClient-The RealtimeKit client instance for the active meeting
appearanceRtkTextAppearanceAppTheme.shared.participantCountAppearanceText appearance configuration for font and color

Usage Examples

Basic Usage

Swift
import RealtimeKitUI
let countView = RtkParticipantCountView(meeting: rtkClient)
view.addSubview(countView)

With custom appearance

Swift
import RealtimeKitUI
let appearance = RtkTextAppearance(
font: UIFont.systemFont(ofSize: 14, weight: .medium),
textColor: .lightGray
)
let countView = RtkParticipantCountView(
meeting: rtkClient,
appearance: appearance
)
view.addSubview(countView)