---
title: RtkParticipantTileView
description: API reference for RtkParticipantTileView 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-participant-tile-view.mdx) [ Report issue ](https://github.com/cloudflare/cloudflare-docs/issues/new/choose) 

Copy page

# RtkParticipantTileView

A complete participant tile view that displays video, avatar, name tag, and pin indicator. Combines `RtkVideoView`, `RtkAvatarView`, and `RtkMeetingNameTag` into a single composable view.

## Initializer parameters

| Parameter                | Type                  | Required | Default | Description                                                    |
| ------------------------ | --------------------- | -------- | ------- | -------------------------------------------------------------- |
| rtkClient                | RealtimeKitClient     | ✅        | \-      | The RealtimeKit client instance                                |
| participant              | RtkMeetingParticipant | ✅        | \-      | The participant to display                                     |
| isForLocalUser           | Bool                  | ✅        | \-      | Whether this tile represents the local user                    |
| showScreenShareVideoView | Bool                  | ❌        | false   | Whether to show the screen share video instead of camera video |

## Properties

| Property  | Type               | Required | Default | Description                                          |
| --------- | ------------------ | -------- | ------- | ---------------------------------------------------- |
| nameTag   | RtkMeetingNameTag! | \-       | \-      | The name tag view displayed on the tile              |
| viewModel | VideoPeerViewModel | \-       | \-      | The view model managing participant data (read-only) |

## Methods

| Method              | Return Type | Description                                      |
| ------------------- | ----------- | ------------------------------------------------ |
| pinView(show: Bool) | Void        | Shows or hides the pin indicator on the tile     |
| refreshVideo()      | Void        | Refreshes the video renderer for the participant |

## Usage Examples

### Basic Usage

Swift

```

import RealtimeKitUI


let tileView = RtkParticipantTileView(

    rtkClient: rtkClient,

    participant: participant,

    isForLocalUser: false

)

view.addSubview(tileView)


```

### Local user tile with screen share

Swift

```

import RealtimeKitUI


let localTile = RtkParticipantTileView(

    rtkClient: rtkClient,

    participant: localParticipant,

    isForLocalUser: true,

    showScreenShareVideoView: true

)

view.addSubview(localTile)


```

```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-participant-tile-view/","name":"RtkParticipantTileView"}}]}
```
