Apple On-Device FoundationModels
Integrates Apple's native on-device language models into iOS applications using the FoundationModels framework for privacy-first AI features.
This skill provides standardized patterns and implementation guides for leveraging Apple's FoundationModels framework in iOS 26+. It enables developers to build high-performance, offline-capable AI features including text generation, structured data extraction via the @Generable macro, and custom tool calling. By focusing on on-device execution, it ensures user privacy while providing advanced capabilities like snapshot streaming for real-time UI updates and comprehensive availability checking for Apple Intelligence compatibility.
Key Features
01On-device text generation and summarization for privacy-sensitive apps
02Custom tool calling for domain-specific AI actions and local logic
03Structured output mapping using the @Generable Swift macro
04151 GitHub stars
05Standardized patterns for model availability and hardware eligibility checks
06Real-time snapshot streaming for responsive, progressive UI updates
Use Cases
01Building offline AI assistants that process sensitive user data without cloud dependency
02Implementing custom AI-driven workflows using local app tools and data
03Extracting structured data from natural language input directly into Swift types