photokit

Automate photo picking, camera capture, and media permissions in iOS apps.

Updated Apr 19, 2026
One-click install
npx skills add https://github.com/femitz/flyby --skill photokit-femitz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: photokit
Source: https://github.com/femitz/flyby/tree/main/.agents/skills/photokit
Command: npx skills add https://github.com/femitz/flyby --skill photokit-femitz

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Automates photo picking, camera capture, and media permission handling in iOS apps.

Core Features & Use Cases

  • Photo picking: integrate PhotosPicker / PHPickerViewController for images with modern async patterns.
  • Camera capture: configure and use AVCaptureSession for photo and video capture with proper permissions.
  • Media permissions: handle photo library and camera access prompts with best-practice UX and Info.plist keys.
  • Cross‑UI patterns: works with SwiftUI and UIKit components and provides references for common workflows such as loading images and handling privacy.

Quick Start

Start by enabling PhotosPicker for photo selection and configure an AVCaptureSession for camera input to begin building media workflows.

Frequently Asked Questions about photokit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I handle camera permissions and photo library access in iOS apps?

Handle camera permissions and photo library access by configuring Info.plist keys and using AVFoundation and PhotoKit APIs to manage privacy prompts with best-practice UX for iOS 16+ apps.

How do I implement PhotosPicker in SwiftUI for async image selection?

Implement PhotosPicker in SwiftUI by using modern async patterns to load selected images, integrating PhotoKit APIs to build reusable photo picking workflows across SwiftUI and UIKit components.

How do I configure AVCaptureSession for photo and video capture?

Configure AVCaptureSession for photo and video capture by setting up camera input devices and managing media permissions, utilizing AVFoundation APIs to establish robust camera workflows in iOS.

Does this photo picking and camera workflow approach support both SwiftUI and UIKit?

Yes, this photo picking and camera capture approach supports both SwiftUI and UIKit, providing cross-UI patterns and reusable references for common media workflows and privacy handling.

What is the best way to manage media permissions when using PHPickerViewController?

The best way to manage media permissions with PHPickerViewController is applying PhotoKit best-practice UX patterns and configuring required Info.plist keys for iOS 16+ privacy compliance.

Why do I need PhotoKit to load images from PHPickerViewController results?

You need PhotoKit to load images from PHPickerViewController results because it provides the necessary APIs to handle photo library data, manage privacy permissions, and process selected media asynchronously.