
Now loading...
Apple has announced the introduction of support for Claude through its Foundation Models framework, enabling developers to use a new Swift package for more intricate workflows. This framework allows for streamlined access to models directly from Swift, making it effortless to handle and capable of returning typed Swift values with just a few lines of code.
With this development, developers can leverage Apple’s Foundation Models framework to integrate Claude, particularly for tasks requiring multi-step reasoning, code generation, and additional functionalities. Notably, Claude has the ability to search the web for up-to-date information and perform code execution for data analysis, delivering its responses directly within the user interface.
Thanks to the framework’s ability to return typed Swift values via @Generable annotations, developers can use clean inputs for Claude API calls instead of unprocessed user text.
The Foundation Models framework supports a variety of sophisticated on-device applications, such as journaling apps that generate personalized prompts, document tools that summarize key information, and educational applications that explain concepts at various comprehension levels. The inclusion of Claude enhances these capabilities further.
For instance, a journaling application can produce daily on-device prompts and then engage Claude to analyze connections over months of written entries. Similarly, a study application may clarify a term through on-device processing, then refer to Claude when a student queries its broader significance.
This integration aims to provide a cohesive user experience, optimized by the appropriate model for each specific task.
The support for Claude within the Foundation Models framework is set to launch tomorrow, compatible with iOS 27, iPadOS 27, macOS 27, visionOS 27, and watchOS 27. Developers can easily incorporate it into their projects by logging in with an Anthropic API key and relaying typed outputs from Apple’s on-device models into requests for Claude, with the package managing streaming, tool calls, and structured responses seamlessly into SwiftUI views.
