Apple On-Device Foundation Models
Integrates Apple's FoundationModels framework for privacy-focused, on-device AI capabilities in iOS applications.
This skill empowers developers to implement Apple Intelligence features directly within their apps using the FoundationModels framework. It provides standardized patterns for text generation, structured data extraction with the @Generable macro, custom tool calling, and snapshot streaming for real-time UI updates. By leveraging on-device execution, it ensures user privacy and offline functionality while providing guidance on managing technical constraints like the 4,096-token context window and model availability checks.
Key Features
01System-level model availability and eligibility checking
02Custom tool calling for domain-specific AI actions
03Real-time snapshot streaming for progressive UI updates
04Privacy-first, offline-capable LLM integration patterns
059 GitHub stars
06Structured data generation using the @Generable macro
Use Cases
01Implementing real-time, streamed content generation for fluid mobile interfaces
02Building privacy-preserving AI assistants that function without an internet connection
03Extracting structured calendar events or contact info from raw text