Apple On-Device Foundation Models
Integrates Apple's FoundationModels framework to build private, offline AI features with structured output and tool calling on iOS.
This skill provides specialized guidance for implementing Apple's FoundationModels framework within iOS 26+ applications. It streamlines the process of integrating on-device language models, focusing on privacy-preserving text generation, structured data extraction via the @Generable macro, and custom tool calling. Developers can leverage these patterns to build responsive, offline-capable AI features that don't rely on cloud processing, ensuring user data remains on the device while providing real-time UI updates through snapshot streaming.
Key Features
011 GitHub stars
02On-device text generation and summarization
03Structured data extraction using @Generable macros
04Custom tool calling for domain-specific tasks
05Snapshot streaming for real-time UI updates
06Availability checking for Apple Intelligence features
Use Cases
01Building privacy-focused AI assistants that function offline
02Creating real-time streaming AI interfaces in SwiftUI
03Extracting structured calendar or contact info from natural language