---
schema_version: "1"
id: 4995acec3fd1262d33ce036dceaf8272d9a29133ceda97117c4fa316f0a18792
title: ParticipantStatusView
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/genai/agentforce-mobile-sdk/references/ios/participant-status-view-ios.md
canonical_url: https://developer.salesforce.com/docs/ai/agentforce-mobile-sdk/references/agentforce-mobile-sdk/participant-status-view-ios.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 019d3b2726f24f065be35374026291cb2161862dfae95dfebf8ef2e5ebce42f4
products:
  - Agentforce Mobile SDK
  - Agentforce and Einstein Generative AI
---
# ParticipantStatusView

## Overview

A SwiftUI view for displaying participant status indicators in conversations. Provides visual feedback about conversation participants, including join/leave notifications, online status, and role identification.

## Declaration

```swift
@MainActor struct ParticipantStatusView
```

## Properties

| Property | Type        | Description              |
| -------- | ----------- | ------------------------ |
| `body`   | `some View` | Inherited from View.body |

## Methods

| Method | Signature                                                                                             | Description                                                        |
| ------ | ----------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------ |
| `init` | `init(participant:action:showAnimation:isCompact:showRole:showTimestamp:themeManager:onInteraction:)` | Creates a participant status view with the specified configuration |

## Initializer Parameters

| Parameter       | Type                                  | Default   | Description                                    |
| --------------- | ------------------------------------- | --------- | ---------------------------------------------- |
| `participant`   | `ParticipantMessage`                  | -         | The participant information to display         |
| `action`        | `ParticipantAction`                   | `.status` | The action being displayed                     |
| `showAnimation` | `Bool`                                | `false`   | Whether to show entry/exit animations          |
| `isCompact`     | `Bool`                                | `false`   | Whether to use compact presentation            |
| `showRole`      | `Bool`                                | `true`    | Whether to show role information               |
| `showTimestamp` | `Bool`                                | `false`   | Whether to show timestamp                      |
| `themeManager`  | `AgentforceThemeManager`              | -         | Theme management interface                     |
| `onInteraction` | `((ParticipantInteraction) -> Void)?` | `nil`     | Optional callback for participant interactions |

## Usage Examples

```swift
// Join notification
ParticipantStatusView(
    participant: joinedParticipant,
    action: .joined,
    showAnimation: true
)

// Compact status indicator
ParticipantStatusView(
    participant: activeParticipant,
    action: .status,
    isCompact: true,
    showRole: true
)
```
