AI Chat Screen for SwiftUI — Streaming LLM Chat UI
Description
> A drop-in, production-grade streaming chat screen for SwiftUI. Configure it
> with one `ChatConfig` struct and point it at any LLM endpoint — OpenAI-style,
> Anthropic-style, or any custom SSE server. Streaming tokens, typing indicator,
> empty and error/retry states, and full theming are already built. The included
> demo runs on a mock service, so it builds and streams with no API key.
What's included:
- Complete SwiftUI chat screen: message list, input bar, streaming, typing indicator
- One-struct `ChatConfig` — no provider hardcoded (OpenAI / Anthropic / custom)
- `ChatService` protocol + live `StreamingChatService` + `MockChatService`
- `ChatTheme` theming (light / dark / midnight presets) — restyle without forking
- Empty, streaming, and error + retry states handled
- Typed errors, no force-unwraps, one passing unit test
- Runnable Example app (builds and runs with no API key)
- README + offline HTML documentation, MIT-style commercial LICENSE
- iOS 16+, Swift Package Manager, zero third-party dependencies
please visit catalog.oncombalado.net for more