Apple On-Device Foundation Models
Integrates Apple's FoundationModels framework for privacy-focused, on-device AI features in iOS 26+ applications.
This skill provides standardized patterns and best practices for leveraging Apple's native on-device language models within iOS applications. It guides developers through implementing high-performance text generation, structured data extraction using the @Generable macro, and custom tool calling—all while maintaining strict user privacy and offline functionality. By following these core patterns, developers can efficiently handle model availability checks, manage session contexts within hardware token limits, and integrate real-time UI updates via snapshot streaming for a seamless AI-native mobile experience.
Key Features
01Structured data extraction using @Generable and @Guide macros
02Comprehensive model availability and eligibility state handling
03Custom tool calling for domain-specific AI logic and actions
040 GitHub stars
05On-device text generation and summarization without cloud dependency
06Real-time snapshot streaming for responsive, progressive UI updates
Use Cases
01Implementing domain-specific AI actions via custom Swift tool protocols
02Building offline-capable AI writing assistants or summarizers for iOS
03Extracting structured data from natural language to automate form filling