Apple On-Device Foundation Models

•
1
•

Integrates Apple’s on-device FoundationModels framework for private, offline LLM capabilities in iOS 26+ applications.

This skill provides expert patterns for implementing Apple Intelligence on-device using the FoundationModels framework. It guides developers through session management, privacy-first text generation, and structured data extraction via the @Generable macro. By streamlining complex tasks like tool calling and snapshot streaming, it enables the creation of responsive, offline-capable AI features that adhere to Apple’s specific technical constraints, such as the 4,096-token context window and device eligibility requirements.

Key Features

01Model availability and eligibility checking patterns
02Custom tool calling for domain-specific AI actions
03Real-time snapshot streaming for responsive SwiftUI updates
04Context-aware multi-turn conversation session management
05Structured output generation using the @Generable macro
061 GitHub stars

Use Cases

01Building privacy-preserving AI assistants that work without an internet connection
02Implementing offline AI actions like local database querying via tool calling
03Extracting structured Swift data types from natural language user input