INTEGRITY Documentation

RtkNameTag

Base name tag view with an icon, title, and optional subtitle. Serves as the foundation for RtkMeetingNameTag.

Initializer parameters

Parameter Type Required Default Description
image RtkImage - The icon image displayed in the name tag
appearance RtkNameTagAppearance - Appearance configuration for the name tag
title String - The primary text displayed in the name tag
subtitle String "" Optional secondary text displayed below the title

Usage Examples

Basic Usage

import RealtimeKitUI

let nameTag = RtkNameTag(
    image: RtkImage(image: UIImage(systemName: "mic")),
    title: "John Doe"
)
view.addSubview(nameTag)

With subtitle

import RealtimeKitUI

let nameTag = RtkNameTag(
    image: RtkImage(image: UIImage(systemName: "mic")),
    title: "John Doe",
    subtitle: "Host"
)
view.addSubview(nameTag)