A pair of quick iOS/macOS concept experiments built after Apple's "Enhance your apps with Foundation Models and AI frameworks" session, using the on-device FoundationModels framework.
d1.mov |
d2.mov |
Four AI personas — Alice, Bob, Charlie, and Diana — debate any topic you choose, each running in their own LanguageModelSession with distinct character instructions. Responses stream in real time via streamResponse(to:generating:).
- Alice: idealistic visionary
- Bob: gruff pragmatist
- Charlie: relentless philosopher who only asks "Why?"
- Diana: data-driven analyst
Describe a screen in plain text and the on-device model generates a live SwiftUI interface from your description using structured output (@Generable). It just shows the concept and supports only a few fields.
- Xcode 26+
- iOS 26+ / macOS 26+
- Device with Apple Intelligence (on-device model)
MIT — see LICENSE.txt
Built with Claude Code (claude-opus-4-6)