Apple On-Device Foundation Models

•
1
•

Integrates Apple's on-device FoundationModels framework to implement secure, private LLM capabilities directly within iOS applications.

This skill provides specialized guidance and implementation patterns for Apple's FoundationModels framework, enabling developers to harness Apple Intelligence for on-device AI tasks. It covers essential patterns including text generation, structured output using the @Generable macro, custom tool calling, and snapshot-based streaming for real-time UI updates. By focusing on local execution, this skill helps developers build privacy-first AI features that function without an internet connection while maintaining compile-time type safety for all AI-generated data.

Key Features

011 GitHub stars
02Structured data extraction using the @Generable macro and @Guide constraints
03On-device LLM session management for maximum user privacy and offline support
04Snapshot-based response streaming for smooth, real-time SwiftUI integrations
05Custom tool calling implementation to bridge AI with domain-specific app logic
06Automated model availability and device eligibility checking patterns

Use Cases

01Extracting structured objects from natural language user input for form filling
02Building privacy-focused personal assistants that process sensitive data locally
03Implementing offline-capable AI tools that interact with local device APIs