Apple Foundation Models On-Device
Integrates Apple's on-device FoundationModels framework for privacy-first, local LLM capabilities in iOS applications.
This skill provides a comprehensive guide and implementation patterns for Apple's FoundationModels framework, enabling developers to harness on-device LLMs for iOS 26 and beyond. It facilitates secure, offline text generation, structured data extraction via the @Generable macro, and custom tool calling. By following these patterns, developers can build sophisticated AI features—such as summarization and natural language command processing—that run entirely on the user's device, ensuring maximum privacy and zero latency from cloud round-trips.
Key Features
01Privacy-centric local text generation and summarization
02Comprehensive model availability and eligibility checks
03Structured data output using the @Generable macro
04Snapshot streaming for real-time UI updates
05Custom tool calling for domain-specific AI logic
061 GitHub stars
Use Cases
01Implementing real-time AI content streaming in SwiftUI
02Extracting structured form data from natural language inputs
03Building privacy-focused offline AI assistants for iOS