---
title: RtkSetupViewController
description: API reference for RtkSetupViewController component (iOS Library)
image: https://developers.cloudflare.com/dev-products-preview.png
---

[Skip to content](#%5Ftop) 

Was this helpful?

YesNo

[ Edit page ](https://github.com/cloudflare/cloudflare-docs/edit/production/src/content/docs/realtime/realtimekit/ui-kit/api-reference/ios/rtk-setup-view-controller.mdx) [ Report issue ](https://github.com/cloudflare/cloudflare-docs/issues/new/choose) 

Copy page

# RtkSetupViewController

Pre-meeting setup screen view controller. Provides video preview, audio and video toggles, and name entry before joining a meeting.

## Initializer parameters

| Parameter   | Type                 | Required | Default | Description                                              |
| ----------- | -------------------- | -------- | ------- | -------------------------------------------------------- |
| meetingInfo | RtkMeetingInfo       | ✅        | \-      | Meeting configuration with auth token and media settings |
| meeting     | RealtimeKitClient    | ✅        | \-      | The RealtimeKit client instance                          |
| completion  | @escaping () -> Void | ✅        | \-      | Closure called when setup completes                      |

## Properties

| Property | Type                         | Required | Default | Description                                              |
| -------- | ---------------------------- | -------- | ------- | -------------------------------------------------------- |
| delegate | SetupViewControllerDelegate? | ❌        | nil     | Delegate notified when the participant joins the meeting |

## Usage Examples

### Basic Usage

Swift

```

import RealtimeKitUI


let setupVC = RtkSetupViewController(

    meetingInfo: meetingInfo,

    meeting: rtkClient,

    completion: {

        print("Setup complete")

    }

)

self.present(setupVC, animated: true)


```

Explain Code

### With delegate

Swift

```

import RealtimeKitUI


class ViewController: UIViewController, SetupViewControllerDelegate {

    func showSetupScreen() {

        let setupVC = RtkSetupViewController(

            meetingInfo: meetingInfo,

            meeting: rtkClient,

            completion: {

                self.dismiss(animated: true)

            }

        )

        setupVC.delegate = self

        self.present(setupVC, animated: true)

    }

}


```

Explain Code

```json
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"item":{"@id":"/directory/","name":"Directory"}},{"@type":"ListItem","position":2,"item":{"@id":"/realtime/","name":"Realtime"}},{"@type":"ListItem","position":3,"item":{"@id":"/realtime/realtimekit/","name":"RealtimeKit"}},{"@type":"ListItem","position":4,"item":{"@id":"/realtime/realtimekit/ui-kit/","name":"Build using UI Kit"}},{"@type":"ListItem","position":5,"item":{"@id":"/realtime/realtimekit/ui-kit/api-reference/","name":"Component Reference"}},{"@type":"ListItem","position":6,"item":{"@id":"/realtime/realtimekit/ui-kit/api-reference/ios/","name":"iOS"}},{"@type":"ListItem","position":7,"item":{"@id":"/realtime/realtimekit/ui-kit/api-reference/ios/rtk-setup-view-controller/","name":"RtkSetupViewController"}}]}
```
