Technical reference for iOS platform integration patterns and requirements.
System Requirements
| Requirement | Version |
|---|---|
| iOS | 17.0+ |
| Xcode | 16.0+ |
| Swift | 5.0+ |
| Dependencies | SalesforceMobileSDK |
Core Integration Points
Essential API signatures and patterns for iOS integration.
Client Initialization
AgentforceClient(
credentialProvider: AgentforceAuthCredentialProviding,
agentforceConfiguration: AgentforceConfiguration
)
Conversation Management
client.startAgentforceConversation(
forAgentId: String,
sessionId: String?
) -> AgentConversation
UI Component Creation
client.createAgentforceChatView(
conversation: AgentConversation,
delegate: AgentforceUIDelegate?,
onContainerClose: () -> Void
) -> AgentforceChatView
Component Reference
Complete reference of iOS components and protocols.
UI Components
| Component | Type | Description |
|---|---|---|
| AgentforceChatView | SwiftUI View | Full conversational interface |
| AgentforceCard | SwiftUI View | Compact conversation summary |
| AgentforceLauncher | SwiftUI View | Floating launcher interface |
| ConversationUIContainer | SwiftUI View | Container for embedding conversation UI |
Core Protocols
| Protocol | Purpose |
|---|---|
| AgentConversation | Conversation interface and state management |
| AgentforceDataProviding | Data access abstraction |
| Typography & Fonts | Font customization; one of several theming areas alongside colors, icons, and display names |
Related Documentation
- UI Components Implementation Guide - Usage patterns and examples
- iOS Integration Guidelines - Complete setup instructions
- Architecture Guide - Design patterns and concepts