Claude integrates into Apple's Foundation Models framework via a Swift package
Anthropic's new Swift package connects Claude to Apple's Foundation Models framework, enabling seamless handoffs from local tasks to advanced cloud AI.
Anthropic is releasing a Swift package that connects Claude to Apple's Foundation Models framework, the framework through which developers natively call models from Swift. This framework primarily serves local and fast tasks, such as summarization or extraction, executed on-device and returned as typed Swift values via guided generation.
The package enables handing off to Claude when a query requires more: multi-step reasoning, code generation, web search for up-to-date information, or code execution for data analysis. The response streams back into the same view. And because Apple provides typed values (with @Generable annotations), the Claude API call starts with clean, structured inputs, not raw text.
The key benefit is the division of roles: a journaling app generates its daily prompts locally then calls on Claude to connect several months of entries, a learning app defines a term on-device before switching to Claude for a broader question. A single experience, the right model at each step.
Available today on iOS 27, iPadOS 27, macOS 27, visionOS 27, and watchOS 27, integration is limited to adding the package and authenticating with an Anthropic API key; the package handles streaming, tool calls, and structured responses returned to the SwiftUI view.