Apple FoundationModels On-Device LLM

0•

Integrates Apple’s FoundationModels framework into iOS apps for private, offline large language model capabilities including structured text generation and tool calling.

This skill provides specialized implementation patterns for Apple's FoundationModels framework, enabling developers to build privacy-centric AI features directly within iOS 26+ applications. It covers the full lifecycle of on-device LLM integration, from model availability checks and session management to advanced features like structured output via the @Generable macro and custom tool invocation. By utilizing these patterns, developers can create responsive, offline-capable AI experiences that handle text summarization, data extraction, and domain-specific logic while ensuring user data never leaves the device.

Key Features

01On-device text generation and summarization for privacy-first applications.
02Custom tool calling to bridge AI intent with domain-specific Swift code.
030 GitHub stars
04Structured data extraction using the @Generable macro and @Guide constraints.
05Real-time snapshot streaming for responsive SwiftUI UI updates.
06Comprehensive availability checking for Apple Intelligence status.

Use Cases

01Implementing real-time, streaming AI content generation for mobile apps.
02Building offline AI assistants that process sensitive user data locally.
03Automating structured data entry from natural language input in iOS forms.