Overview
Anthropic released a Swift package that brings Claude to Apple’s Foundation Models framework. Apple developers can combine on-device models and Claude inside one framework — handling simple tasks on device and handing off to Claude for the workflows that need more.
Key features
-
Call Claude natively from Swift through the Foundation Models framework
Integrating Claude into an Apple-platform app meant writing your own HTTP client and response parsing. Apple’s Foundation Models framework gives developers access to tap into models natively from Swift, and with this package that interface now reaches Claude — returning typed Swift values through guided generation in as few as three lines of code.
-
On-device models for simple tasks, Claude for the rest
On-device models alone struggle with multi-step reasoning and code generation, while sending every request to a cloud model adds cost and latency to simple tasks. In this setup, apps leverage on-device models for simple tasks, then hand off to Claude when workflows require multi-step reasoning, code generation, and other advanced capabilities.
-
Streaming, tool calls, and structured responses into SwiftUI
The framework handles streaming, tool calls, and structured responses back into your SwiftUI view.
Notes
- Supported OS versions — iOS 27, iPadOS 27, macOS 27, visionOS 27, and watchOS 27.
- Anthropic API key required — calls to Claude authenticate with an Anthropic API key.
- Availability — Claude support with the Foundation Models framework became available the day after the June 8, 2026 announcement.
- Example use cases — journaling apps generating personalized prompts and analyzing entry patterns, study apps explaining concepts, document apps summarizing contracts, and learning apps explaining concepts at a student’s reading level.