claudekit / updates / claude-for-foundation-models
[ NEW · ]

Claude in Apple's Foundation Models framework

Anthropic released a Swift package that lets Apple developers use Claude through Apple's Foundation Models framework. The framework gives developers access to tap into models natively from Swift and can return typed Swift values through guided generation in as few as three lines of code. Apps can use on-device models for simple tasks, then hand off to Claude when workflows require multi-step reasoning or code generation, with streaming, tool calls, and structured responses flowing back into your SwiftUI view. Supports iOS 27, iPadOS 27, macOS 27, visionOS 27, and watchOS 27; an Anthropic API key is required.

Official announcement →

This article is a summary based on official documentation.

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.
§ 4

Frequently Asked Questions

frequently asked
§ 4.1
What's the core of this announcement?
A new Swift package lets Apple developers call Claude through Apple's Foundation Models framework, combining on-device models and Claude inside one framework for apps on Apple platforms.
§ 4.2
Which Apple platforms are supported?
iOS 27, iPadOS 27, macOS 27, visionOS 27, and watchOS 27.
§ 4.3
How do on-device models and Claude split the work?
Apps use on-device models for simple tasks, then hand off to Claude when workflows require multi-step reasoning, code generation, and other advanced capabilities.
§ 4.4
How does authentication work?
An Anthropic API key is required.
§ 4.5
What kinds of apps is this for?
The announcement describes 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.