Agent skill · Frontend

avkit

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.

Derek Pearson935★ · +23/wk · 1 repos on radarProfile →
claude-codecodexcursorNOASSERTION
Install
npx skills add dpearson2699/swift-ios-skills --skill avkit --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 3
SKILL.md size: 17 KB
Bundled scripts: none
Path: skills/avkit/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 963 · +28 this week
Language: Python
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 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.3 / iOS 26+. ## Contents - [Setup](#setup) - [AVPlayerViewController](#avplayerviewcontroller) - [SwiftUI VideoPlayer](#swiftui-videoplayer) - [Picture-in-Picture](#picture-in-picture) - [AirPlay](#airplay) - [Transport Controls and Playback Speed](#transport-controls-and-playback-speed) - [Subtitles and Closed Captions](#subtitles-and-closed-captions) - [Common Mistakes](#common-mistakes) - [Review Checklist](#review-checklist) - [References](#references) ## Setup ### Audio Session Configuration Playback apps need an audio session category and the matching background mode when they support background audio, AirPlay, or PiP. 1. Enable Background Modes > Audio, AirPlay, and Picture in Picture (the `audio` value in `UIBackgroundModes`) 2. Set the audio session category to `.playback` 3. Defer `setActive(true)` until playback begins so you do not interrupt other audio prematurely ```swift import AVFoundation func configureAudioSessionForPlayback() { let session = AVAudioSession.sharedI

What's inside
Steps it walks through
  1. Contents
  2. Setup
  3. Audio Session Configuration
  4. Imports
  5. AVPlayerViewController
  6. Basic Presentation (Full Screen)
  7. Inline (Embedded) Playback
  8. Key Properties
  9. Delegate
  10. Display Readiness
  11. SwiftUI VideoPlayer
  12. Basic Usage
  13. Video Overlay
  14. UIKit Hosting for Advanced Control
Ships with 2 files
  • evals/evals.json
  • references/avkit-patterns.md
More from swift-ios-skills
All skills →
About this skill
What does the avkit skill do?

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.

How do I install it?

Run `npx skills add dpearson2699/swift-ios-skills --skill avkit --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From dpearson2699/swift-ios-skills, a repository with 963 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going