A navigation bar with a title label and a close or back button. Used for modal screens such as chat, polls, and participant lists.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
title |
String |
✅ | - | The title text displayed in the navigation bar |
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
titleLabel |
RtkLabel |
- | - | The label displaying the navigation bar title (read-only) |
leftButton |
RtkControlBarButton |
- | - | The close or back button on the left side (read-only) |
| Method | Return Type | Description |
|---|---|---|
setBackButtonClick(callBack:) |
Void |
Sets the tap handler for the back or close button |
import RealtimeKitUI
let navBar = RtkNavigationBar(title: "Participants")
view.addSubview(navBar)import RealtimeKitUI
let navBar = RtkNavigationBar(title: "Chat")
navBar.setBackButtonClick {
self.dismiss(animated: true)
}
view.addSubview(navBar)