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 

1@MainActor
2struct TypingIndicatorView: View

Properties 

PropertyTypeDescription
bodysome ViewInherited from View.body

Methods 

MethodSignatureDescription
initinit(typingIndicators: [String : TypingIndicatorMessage], themeManager: AgentforceThemeManager, showParticipantNames: Bool = true)Creates a typing indicator view with the specified configuration

Usage Examples 

1// Basic typing indicator
2TypingIndicatorView(
3    typingIndicators: activeTypingIndicators,
4    animationStyle: .dots
5)
6
7// Customized styling
8TypingIndicatorView(
9    typingIndicators: activeTypingIndicators,
10    animationStyle: .pulse,
11    showParticipantNames: true,
12    backgroundColor: .gray.opacity(0.1)
13)