Apple FoundationModels On-Device

0•

Integrates Apple's on-device FoundationModels framework for privacy-preserving text generation and structured data extraction in iOS applications.

This skill provides developers with standardized patterns and implementation guides for Apple’s on-device Language Model (LLM) framework introduced in iOS 26+. It streamlines the process of checking model availability, managing multi-turn sessions, and utilizing the @Generable macro for type-safe structured output. By following these patterns, developers can implement sophisticated AI features—like tool calling and snapshot streaming—directly on-device, ensuring user privacy and offline functionality without relying on cloud-based APIs.

Key Features

01Implementation guides for custom tool calling and domain-specific actions
02Type-safe structured output generation using the @Generable macro
03Comprehensive model availability and eligibility checking patterns
040 GitHub stars
05Real-time UI integration with snapshot-based partial response streaming
06Privacy-first design patterns for offline-capable local AI features

Use Cases

01Implementing real-time streaming text generation in SwiftUI views
02Building privacy-sensitive AI assistants that function entirely offline
03Extracting structured data from natural language user input into Swift types