An example Xcode project demonstrating Claude via Apple's Foundation Models framework with ClaudeForFoundationModels. The app generates gift ideas and lets you switch between the on-device model and Claude (bring your own API key) in Settings.
Companion project for the blog post: Using Claude with Apple Foundation Models.
- Xcode 27 beta
- iOS 27 beta
- A Claude API key from Claude Console for the Claude model option
Artem Novichkov, https://artemnovichkov.com
The project is available under the MIT license. See the LICENSE file for more info.