Apple FoundationModels On-Device AI

0•

Implements Apple's FoundationModels framework for private, offline LLM integration in iOS applications.

This skill provides comprehensive implementation patterns for Apple's FoundationModels framework, enabling developers to run large language models directly on-device. It covers essential workflows including model availability checks, multi-turn conversational sessions, and advanced features like structured data generation using the @Generable macro. By following these best practices, developers can build responsive, privacy-centric AI features that work offline and leverage the full power of Apple Intelligence on iOS 26 and later.

Key Features

01On-device text generation and multi-turn conversations
02Structured data extraction using @Generable and @Guide macros
03Snapshot streaming for real-time UI updates
04Privacy-focused execution with zero data leaving the device
050 GitHub stars
06Custom tool calling for domain-specific AI actions

Use Cases

01Building offline-capable AI writing assistants and summarizers
02Extracting calendar events or form data from natural language
03Creating interactive AI agents that call local app functions