Apple FoundationModels On-Device

•
1
•

Integrates Apple's FoundationModels framework to implement privacy-first, on-device language model features in iOS applications.

This skill provides comprehensive implementation patterns for Apple's FoundationModels framework, enabling developers to build AI-powered features that run locally on-device in iOS 26+. It covers essential workflows including session management, availability checks, and structured data extraction using the @Generable macro. By following these patterns, developers can implement custom tool calling for domain-specific actions and real-time snapshot streaming for responsive UIs, all while ensuring user privacy and providing offline support without cloud dependencies.

Key Features

01Structured output generation using the @Generable Swift macro
02Custom tool calling patterns for domain-specific AI actions
03Real-time snapshot streaming for responsive UI updates
04Implementation of privacy-preserving on-device LLM workflows
051 GitHub stars
06Comprehensive model availability and error handling checks

Use Cases

01Creating responsive SwiftUI interfaces that stream AI-generated content
02Extracting structured data from natural language input for automated form filling
03Building offline-capable text summarization and generation tools