Skip to content

RtkParticipantCountView

Last updated View as MarkdownAgent setup

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

Initializer parameters

Parameter Type Required Default Description
meeting RealtimeKitClient - The RealtimeKit client instance for the active meeting
appearance RtkTextAppearance AppTheme.shared.participantCountAppearance Text appearance configuration for font and color

Usage Examples

Basic Usage

import RealtimeKitUI

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

With custom appearance

import RealtimeKitUI

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

Was this helpful?