Handles the full stack of iOS photo and camera work: PhotosPicker for SwiftUI photo selection, AVCaptureSession for camera capture, PHPhotoLibrary for direct library access, and all the permission handling that goes with it. The patterns target iOS 16+ with Swift 6.3, covering both the modern PhotosPicker (which runs out-of-process and needs no permissions for browsing) and the older PHPicker/UIImagePickerController when you need them. Includes concrete examples for single and multi-selection, media type filtering, Transferable loading, and the two-tier photo library permission model. Use this when you need to let users pick photos, take pictures, record video, or save media back to their library.

skills.sh installs
3.4K
GitHub stars
1.3K
last updated
Aug 21, 2026

Install

$ npx -y skills add dpearson2699/swift-ios-skills --skill photokit --agent claude-code

Installs into .claude/skills of the current project.

Files

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 for complete picker recipes and references/camera-capture.md for AVCaptureSession patterns.

Contents

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

import SwiftUI
import PhotosUI

struct SinglePhotoPicker: View {
    @State private var selectedItem: PhotosPickerItem?
    @State private var selectedImage: Image?

Sponsors

Details

Repository
github.com/dpearson2699/swift-ios-skills
Categories
Git & Pull Requests, Code Review & Quality, Mobile Development, Video & Audio Editing
First seen
May 16, 2026

More from dpearson2699/swift-ios-skills

All 98
1eronred avataraso-auditeronred/aso-skillsWhen the user wants a full ASO health audit, review their App Store listing quality, or diagnose why their app isn't ranking. Also use when the user mentions "A3.4Kskills.sh installs
2dpearson2699 avatarmapkitdpearson2699/swift-ios-skillsImplement, review, or improve maps and location features in iOS/macOS apps using MapKit and CoreLocation. Use when working with Map views, annotations, markers,3.4Kskills.sh installs
3tradermonty avataredge-pipeline-orchestratortradermonty/claude-trading-skillsOrchestrate the full edge research pipeline from candidate detection through strategy design, review, revision, and export. Use when coordinating multi-stage ed3.4Kskills.sh installs
4gogf avatargoframe-v2gogf/skillsGoFrame v2 development skill. Use only when the target Go project uses or is explicitly adopting GoFrame v2: the nearest go.mod requires github.com/gogf/gf/v2, 3.3Kskills.sh installs
5hashicorp avatarprovider-docshashicorp/agent-skillsCreate, update, and review Terraform provider documentation for Terraform Registry using HashiCorp-recommended patterns, tfplugindocs templates, and schema desc3.3Kskills.sh installs
6actionbook avatarrust-learneractionbook/rust-skillsUse when asking about Rust versions or crate info. Keywords: latest version, what's new, changelog, Rust 1.x, Rust release, stable, nightly, crate info, crates.3.3Kskills.sh installs