Apple On-Device Foundation Models
Integrates Apple's FoundationModels framework into iOS applications for private, on-device AI features like text generation and structured data extraction.
This skill provides specialized implementation patterns for Apple's FoundationModels framework, enabling developers to harness Apple Intelligence directly within iOS 26+ apps. It focuses on privacy-preserving, offline-capable AI features including text generation, structured output via the @Generable macro, and custom tool calling. By providing standardized templates for availability checks, session management, and snapshot streaming, it helps developers build responsive, AI-driven mobile experiences while staying within on-device hardware constraints like the 4,096 token context window.
Key Features
01Snapshot streaming for real-time, structured UI updates in SwiftUI.
022 GitHub stars
03Structured output with compile-time safety via the @Generable macro.
04Custom tool calling to bridge natural language with domain-specific app logic.
05Automated model availability and device eligibility handling.
06Privacy-first on-device text generation using Apple Intelligence.
Use Cases
01Extracting structured data like calendar events or contact profiles from raw user input.
02Implementing privacy-sensitive chatbots that process data entirely on-device without cloud dependencies.
03Building offline-capable AI writing assistants and summarizers for mobile apps.