Skip to content

RtkNavigationBar

A navigation bar with a title label and a close or back button. Used for modal screens such as chat, polls, and participant lists.

Initializer parameters

ParameterTypeRequiredDefaultDescription
titleString-The title text displayed in the navigation bar

Properties

PropertyTypeRequiredDefaultDescription
titleLabelRtkLabel--The label displaying the navigation bar title (read-only)
leftButtonRtkControlBarButton--The close or back button on the left side (read-only)

Methods

MethodReturn TypeDescription
setBackButtonClick(callBack:)VoidSets the tap handler for the back or close button

Usage Examples

Basic Usage

Swift
import RealtimeKitUI
let navBar = RtkNavigationBar(title: "Participants")
view.addSubview(navBar)

With back button handler

Swift
import RealtimeKitUI
let navBar = RtkNavigationBar(title: "Chat")
navBar.setBackButtonClick {
self.dismiss(animated: true)
}
view.addSubview(navBar)