Apple Foundation Models Integration

•
1
•

Implements on-device AI features using Apple’s Foundation Models framework for private, offline, and cost-effective LLM capabilities.

This skill empowers developers to integrate Apple's on-device foundation models into iOS and macOS applications, facilitating private and efficient AI tasks such as summarization, classification, and structured data extraction. It provides expert guidance on using the FoundationModels framework (iOS 26/macOS 26), covering critical patterns like guided generation with @Generable, real-time streaming, and secure tool calling. By leveraging this skill, developers can build responsive, offline-first AI features that respect user privacy and eliminate server-side costs while ensuring robust error handling and availability gating for Apple Intelligence.

Key Features

01Real-time response streaming for reduced perceived latency
021 GitHub stars
03Sophisticated availability gating for Apple Intelligence features
04On-device LLM integration via the FoundationModels framework
05Typed, structured output using @Generable and @Guide macros
06Local tool calling for grounding AI in app-specific data

Use Cases

01Building private, offline summarization and text extraction tools
02Generating validated Swift structs from unstructured user input
03Implementing on-device semantic routing and classification systems