A minimal macOS chat app powered by Apple's on-device Foundation Models.
- macOS Sequoia 26.0 or later
- Apple Silicon Mac
- Xcode 16.0+
- On-device AI chat using Apple's Foundation Models
- Streaming responses
- Cancel generation mid-stream
- Clean, native macOS UI
- Zero external dependencies
Open FoundationChat.xcodeproj in Xcode and build (Cmd+B).
FoundationChat/
├── FoundationChatApp.swift # App entry point
├── ChatView.swift # Main UI
├── ChatViewModel.swift # State management
├── Message.swift # Data model
└── MessageBubble.swift # Message UI component
~200 lines of Swift. MVVM architecture with @Observable and @MainActor.
MIT