Apple FoundationModels Framework
Integrates Apple’s on-device FoundationModels framework into iOS applications for private, offline language model features.
This skill provides a comprehensive set of patterns and best practices for implementing Apple's FoundationModels framework in iOS 26+ applications. It enables developers to build privacy-preserving, offline AI features including text generation, structured data extraction via the @Generable macro, and custom tool calling. By leveraging on-device LLMs, it allows for real-time UI updates through snapshot streaming while ensuring sensitive user data never leaves the device, making it ideal for security-conscious mobile development.
主要功能
01Custom tool calling for domain-specific AI actions and logic
02On-device LLM integration for privacy and offline-first support
03Automated model availability and device eligibility checking
04Structured output generation using @Generable Swift macros
050 GitHub stars
06Real-time snapshot streaming for responsive UI updates
使用场景
01Building offline-first AI writing assistants or text summarizers in iOS apps
02Extracting structured data from natural language inputs for automated form filling
03Implementing privacy-focused local tool calling for secure system interactions