← ClaudeAtlas

avkitlisted

Create media playback experiences using AVKit. Use when adding video players with AVPlayerViewController, enabling Picture-in-Picture, routing media with AirPlay, using SwiftUI VideoPlayer views, configuring transport controls, displaying subtitles and closed captions, or integrating AVFoundation playback with system UI.
thienqo/ios-skills · ★ 11 · AI & Automation · score 69
Install: claude install-skill thienqo/ios-skills
# AVKit High-level media playback UI built on AVFoundation. Provides system-standard video players, Picture-in-Picture, AirPlay routing, transport controls, and subtitle/caption display. Targets Swift 6.4 / iOS 26+. ## Contents - [Workflow](#workflow) - [Route by Task](#route-by-task) - [Core Decisions](#core-decisions) - [Common Mistakes](#common-mistakes) - [Review Checklist](#review-checklist) - [References](#references) ## Workflow 1. Define playback ownership, media source, audio-session policy, background behavior, and supported system controls. 2. Choose `AVPlayerViewController` for full system playback UI or SwiftUI `VideoPlayer` for simpler embedding. 3. Keep `AVPlayer` in stable state outside transient view initialization and observe readiness/errors deliberately. 4. Configure Picture in Picture, AirPlay, Now Playing, subtitles, and seeking only when the product needs them. 5. Verify interruptions, route changes, foreground/background transitions, PiP restoration, captions, and teardown. ## Route by Task - Read [core implementation details](references/core-implementation.md) for audio session, player controllers, `VideoPlayer`, PiP, AirPlay, controls, and subtitles. - Read [extended AVKit patterns](references/avkit-patterns.md) for custom player UI, interstitials, background playback, error handling, and advanced hosting. ## Core Decisions - Prefer system playback UI and delegation over subclassing `AVPlayerViewController`. - Configure the audio session for