---
schema_version: "1"
id: 37139e93ea9e45591ad0ae353a510cc8c0a08229b4769a6d9f64f5792bb4a5a1
title: TypingIndicatorView
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/genai/agentforce-mobile-sdk/references/ios/typing-indicator-view-ios.md
canonical_url: https://developer.salesforce.com/docs/ai/agentforce-mobile-sdk/references/agentforce-mobile-sdk/typing-indicator-view-ios.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: d8a946866741b2d83d8c421f8e53af72e42b6fe0bd2beb1d2cc0136b88b7e452
products:
  - Agentforce Mobile SDK
  - Agentforce and Einstein Generative AI
---
# TypingIndicatorView

## Overview

A SwiftUI view that displays animated typing indicators for participants in a conversation. Provides visual feedback when participants are actively typing, enhancing the conversational experience with real-time activity indicators.

## Declaration

```swift
@MainActor
struct TypingIndicatorView: View
```

## Properties

| Property | Type      | Description              |
| -------- | --------- | ------------------------ |
| body     | some View | Inherited from View.body |

## Methods

| Method | Signature                                                                                                                          | Description                                                      |
| ------ | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------- |
| init   | init(typingIndicators: [String : TypingIndicatorMessage], themeManager: AgentforceThemeManager, showParticipantNames: Bool = true) | Creates a typing indicator view with the specified configuration |

## Usage Examples

```swift
// Basic typing indicator
TypingIndicatorView(
    typingIndicators: activeTypingIndicators,
    animationStyle: .dots
)

// Customized styling
TypingIndicatorView(
    typingIndicators: activeTypingIndicators,
    animationStyle: .pulse,
    showParticipantNames: true,
    backgroundColor: .gray.opacity(0.1)
)
```
