Apple On-Device Foundation Models

0•

Integrates Apple's FoundationModels framework into iOS apps for private, on-device text generation and structured data extraction.

The FoundationModels skill provides patterns and best practices for implementing Apple’s on-device language models in iOS 26+ applications. It enables developers to build privacy-preserving AI features that function entirely offline, covering essential workflows such as availability checking, structured data extraction using the @Generable macro, and custom tool calling. By leveraging this skill, developers can implement sophisticated AI capabilities like real-time snapshot streaming and multi-turn conversations while staying within device-specific constraints like the 4,096-token context window.

Key Features

01Structured data generation using @Generable and @Guide macros
02Comprehensive model availability and eligibility handling
03Privacy-first on-device execution with no cloud dependency
04Custom tool calling for domain-specific AI logic
05Real-time UI updates with snapshot streaming patterns
060 GitHub stars

Use Cases

01Building privacy-sensitive personal assistants that process user data locally
02Extracting structured calendar events or contact info from natural language
03Implementing offline text summarization and content generation features