Habr AI→ original

Apple unveils Foundation Models: how to embed local AI into SwiftUI apps

Apple has introduced Foundation Models, a new framework that gives developers access to local AI models directly inside SwiftUI apps. The core promise is…

AI-processed from Habr AI; edited by Hamidun News
Apple unveils Foundation Models: how to embed local AI into SwiftUI apps
Source: Habr AI. Collage: Hamidun News.
◐ Listen to article

Apple at WWDC 2025 showcased Foundation Models — a new framework that enables developers to embed Apple's local AI models directly into SwiftUI applications. The idea is straightforward: generation runs directly on the device, without the cloud, without additional inference costs, and with a focus on user data privacy.

What Apple Showcased

Foundation Models is not a standalone application, but rather a set of system-level tools for developers. Apple proposes embedding local models into an application interface so that users can ask questions, get suggestions, or request text generation without leaving the main workflow. For Apple's ecosystem, this is an important step: the company is translating conversations about AI from the level of demonstrations into a practical SDK that can be integrated into a product and used immediately within SwiftUI.

Apple's key argument is on-device data processing. This eliminates several typical problems with cloud-based AI: network latency, the cost of each request, and risks associated with sending sensitive text to external servers. For applications where response speed and confidentiality are critical, this approach looks particularly strong. It's not just about convenience, but about a new class of interfaces that can work even without constant internet connectivity.

How to Integrate It

In the demonstrated example on SwiftUI, the application accepts a user query, passes it to Foundation Models, and displays the generated response directly in the interface in real time. This is an important detail: the user sees not a final block of text after a long pause, but a gradual appearance of the result, as in modern AI chats. For mobile and desktop applications, this pattern has already become the norm, and Apple essentially provides a native way to implement it without external AI infrastructure.

  • input field for the user's query
  • local model invocation from SwiftUI code
  • streaming display of the response in the interface
  • operation without cloud API and token payment
  • emphasis on data processing within the device

In practice, this opens the door for built-in assistants within notes, editors, corporate forms, educational services, and other applications where quick text responses are needed. Developers don't need to build a separate backend just for basic AI scenarios. If a product already lives within the Apple ecosystem, Foundation Models can significantly reduce the path from idea to working prototype: less network logic, fewer integrations, and lower infrastructure costs at launch.

Where the Main Value Lies

The strongest aspect of this innovation is the combination of locality and nativeness. Previously, developers often had to choose between convenient UI on SwiftUI and powerful AI living somewhere in an external cloud. Now Apple proposes to link these two layers within a single platform. This does not mean that local models will automatically replace all server-side solutions, but for many everyday tasks — summarization, suggestions, draft answers, request classification — the built-in on-device approach may already be sufficient.

For business, this is also a question of economics. When AI works locally, the variable cost of each model call disappears, and with it, the threshold for experimentation lowers. A team can test AI features within a product without a separate inference budget and without lengthy discussions with lawyers about data transfer to third-party providers. As a result, SwiftUI stops being merely a layer of interface and becomes an entry point for full-fledged local AI scenarios.

What This Means

Apple is betting on AI not only as a user-facing feature but also as a basic tool for developers. If Foundation Models gains wide support in real-world applications, the SwiftUI market will quickly see a wave of local assistants that work faster, cheaper, and more privately than familiar cloud integrations.

ZK
Hamidun News
AI news without noise. Daily editorial selection from 400+ sources. A product by Zhemal Khamidun, Head of AI at Alpina Digital.

Want to stop reading about AI and start using it?

AI News is a curated feed of AI/tech news. Hamidun Academy teaches you to use AI systematically in your work.

What do you think?
Loading comments…