photokit
Implement, review, or improve photo picking, camera capture, and media handling in iOS apps using PhotoKit and AVFoundation. Use when working with PhotosPicker, PHPickerViewController, camera capture sessions (AVCaptureSession), photo library access, image loading and display, video recording, or media permissions. Also use when selecting photos from the library, taking pictures, recording video, processing images, or handling photo/camera privacy permissions in Swift apps.
npx skills add dpearson2699/swift-ios-skills --skill photokit --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# PhotoKit Modern patterns for photo picking, camera capture, image loading, and media permissions targeting iOS 26+ with Swift 6.3. Patterns are backward-compatible to iOS 16 unless noted. See [references/photokit-patterns.md](references/photokit-patterns.md) for complete picker recipes and [references/camera-capture.md](references/camera-capture.md) for AVCaptureSession patterns. ## Contents - [PhotosPicker (SwiftUI, iOS 16+)](#photospicker-swiftui-ios-16) - [Privacy and Permissions](#privacy-and-permissions) - [Camera Capture Basics](#camera-capture-basics) - [Image Loading and Display](#image-loading-and-display) - [Common Mistakes](#common-mistakes) - [Review Checklist](#review-checklist) - [References](#references) ## PhotosPicker (SwiftUI, iOS 16+) `PhotosPicker` is the native SwiftUI replacement for `UIImagePickerController`. It runs out-of-process, requires no photo library permission for browsing, and supports single or multi-selection with media type filtering. ### Single Selection ```swift import SwiftUI import PhotosUI struct SinglePhotoPicker: View { @State private var selectedItem: PhotosPickerItem? @State private var selectedImage: Image? var body: some View { VStac
- Contents
- PhotosPicker (SwiftUI, iOS 16+)
- Single Selection
- Multi-Selection
- Media Type Filtering
- Loading Selected Items with Transferable
- Privacy and Permissions
- Photo Library Access Levels
- Checking and Requesting Photo Library Permission
- Camera Permission
- Handling Denied Permissions
- Required Info.plist Keys
- Camera Capture Basics
- Minimal Camera Manager
What does the photokit skill do?
Implement, review, or improve photo picking, camera capture, and media handling in iOS apps using PhotoKit and AVFoundation. Use when working with PhotosPicker, PHPickerViewController, camera capture sessions (AVCaptureSession), photo library access, image loading and display, video recording, or media permissions. Also use when selecting photos from the library, taking pictures, recording video, processing images, or handling photo/camera privacy permissions in Swift apps.
How do I install it?
Run `npx skills add dpearson2699/swift-ios-skills --skill photokit --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.