iOS SDK — LiveAndAiChat (Swift PM / CocoaPods)

Native Swift chat SDK with a SwiftUI chat screen.

Install: Swift PM https://github.com/talktothelaw/new-instance-livechat.git from 0.1.0, or pod 'LiveAndAiChat', '~> 0.1.0' · iOS 14+ · Swift 5.9.

import LiveAndAiChat
let chat = LiveAndAiChat(config: LiveAndAiChatConfig(apiKey: "sk_live_abc123"))
// SwiftUI:
ChatScreen(chat: chat)

Auth: publishable widget key (bare key ID). In release builds the SDK rejects base-URL overrides — production apps always talk to https://service.newinstance.cloud.

Transport: HTTP/1.1-pinned SSE with WebSocket fallback, reconnect backoff, image caching.