Demo Library
Minimal, focused Swift demos for every tracked iOS 27 capability.
Real-World Metric & Diagnostic Monitor
Demonstrates the new async/await MetricKit API to receive daily metric reports and immediate diagnostic reports at app launch, extracting peak memory and crash backtrace information.
Book Club Reading Schedule — Extra Large Portrait
Shows a multi-day reading schedule widget that adopts the new systemExtraLargePortrait family on iOS 27, rendering additional schedule rows that were hidden in the medium layout.
Tea Party Agent with Security Guardrails
Builds a Foundation Models agent for the 'Organize a Tea Party' feature, demonstrating lifecycle event modifiers that gate a financial action behind user confirmation and require device authentication before execution.
Trail Journal LLM Search
Demonstrates attaching SpotlightSearchTool to a LanguageModelSession so users can ask natural-language questions about indexed hiking trails, with results streamed back to a SwiftUI chat interface.
Device Hub Inspector + SwiftUI Accessibility Preview
Demonstrates using Xcode 27's Device Hub Inspector approach in code by building a SwiftUI view that adapts to the accessibility settings (Dynamic Type, contrast, color scheme) that Device Hub lets you toggle live during testing.
Bulk Photo Tagger with EntityCollection
Demonstrates how to use EntityCollection as an intent parameter type to tag thousands of photos by keyword without resolving full entities, showing the before/after performance pattern introduced in iOS 27.
UnicornChat Send Message via Siri
Demonstrates how to define an AppEntity conforming to an AppSchema, index it with IndexedEntity, and implement a sendMessage App Intent using the Messages domain schema so Siri can send messages hands-free.
Trip Store Observer
Demonstrates ResultsObserver and the new .codable attribute: a MapCameraController outside SwiftUI that reacts to Trip changes using Swift Observation, plus a Trip model storing an MKMapItem.Identifier via the .codable attribute.
Swift 6.3/6.4 Language Features Showcase
Demonstrates four key Swift 6.3/6.4 improvements: anyAppleOS availability, @diagnose for warning suppression, module selector disambiguation, and mapKeyedValues on Dictionary.
Adaptive Toolbar & Document Writer
Demonstrates the new toolbar visibility APIs and the WritableDocument async snapshot pattern introduced in iOS 27, showing how to keep critical actions visible and write documents efficiently in the background.
Book Tag Quality Evaluator
Demonstrates how to build a basic Evaluation that measures whether an AI-powered book-tagging service generates an appropriate number of tags, then asserts a quality threshold using Swift Testing integration.
Vocab Card Generator with Custom On-Device LLM
Loads a local Qwen .aimodel file via CoreAILanguageModel, then uses a standard FoundationModels LanguageModelSession with a @Generable struct to generate a Mandarin vocabulary card from an English label — all on-device.
Snake AI — On-Device Model Inference
Demonstrates loading a custom .aimodel file, preparing an NDArray input, running inference, and reading output logits — the core loop for any Core AI-powered feature.
Custom Echo LLM Provider
Implements a minimal custom LanguageModel and LanguageModelExecutor that streams a reversed-echo response, demonstrating the full provider protocol surface area a real model package would implement.
Origami Assistant — Baton-Pass Agent
Demonstrates a two-phase DynamicProfile session that switches from a creative brainstorm agent (using PrivateCloudComputeLanguageModel with high temperature) to a focused tutorial agent (using SystemLanguageModel), sharing state via a custom SessionPropertyEntry.
Shopping Cart with Observable Model
Demonstrates an @Observable view model driving a SwiftUI list, including a child view using @Bindable for two-way binding to a cart item.
Live Scene Analyzer
Opens a camera feed and uses Visual Intelligence to continuously analyze the scene, displaying recognized subjects and suggested actions in an overlay.
Pizza Delivery Tracker
Demonstrates a minimal Live Activity that tracks a pizza delivery order with a Lock Screen view and Dynamic Island compact presentation using ActivityKit and WidgetKit.
Liquid Glass Card
Demonstrates a custom card view using the `.glassEffect()` modifier to achieve the iOS 26 Liquid Glass aesthetic, layered over a colorful gradient background.
Voice-Activated Task Creator
Demonstrates a complete AppIntent that lets Siri create a named task with a priority level, including a custom AppEnum for priority and a confirmation dialog before committing.
On-Device Recipe Generator
Demonstrates streaming structured output using @Generable to have the on-device model generate a typed Recipe struct with ingredients and steps, displayed live in SwiftUI as tokens arrive.