axiom-photo-library-ref

Reference iOS Photo Library APIs for Swift and SwiftUI development.

Updated Dec 3, 2025
One-click install
npx skills add https://github.com/tuliopc23/flying-dutchman-app --skill axiom-photo-library-ref
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: axiom-photo-library-ref
Source: https://github.com/tuliopc23/flying-dutchman-app/tree/main/.claude/skills/axiom-photo-library-ref
Command: npx skills add https://github.com/tuliopc23/flying-dutchman-app --skill axiom-photo-library-ref

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive reference for interacting with the iOS Photo Library, enabling developers to efficiently manage and access photos and videos within their applications.

Core Features & Use Cases

  • Photo Selection: Utilize PHPickerViewController (UIKit) and PhotosPicker (SwiftUI) for user-driven photo selection without explicit permissions.
  • Asset Management: Fetch, display, and manage PHAsset objects, including filtering by type, date, and other metadata.
  • Saving & Editing: Create new assets, save images to the camera roll, and handle asset modifications.
  • Permission Handling: Understand and manage PHPhotoLibrary authorization statuses and request user permissions.
  • Use Case: Integrate a seamless photo selection experience into your app, allowing users to pick images for their profile or content, and programmatically save user-generated content back to their library.

Quick Start

Use the axiom-photo-library-ref skill to find examples of how to request photo library access.

Frequently Asked Questions about axiom-photo-library-ref

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

FAQPage Schema
How do I implement PHPickerViewController for iOS photo selection without requesting permissions?

To implement PHPickerViewController for iOS photo selection, configure PHPickerConfiguration to define selection limits and filters. This allows user-driven photo selection directly without requiring explicit PHPhotoLibrary authorization, streamlining the integration process.

What is the difference between using PhotosPicker in SwiftUI and PHPickerViewController in UIKit?

PhotosPicker is the native SwiftUI view for photo selection, while PHPickerViewController is the UIKit equivalent. Both utilize PHPickerConfiguration to manage asset selection rules, allowing developers to choose based on their UI framework.

How do I fetch and filter PHAsset objects by metadata like date in Swift?

To fetch and filter PHAsset objects, use the Photos framework to query assets by type, date, and other metadata. This enables efficient asset management by allowing you to display and sort specific subsets of the user's photo library.

How do I request PHPhotoLibrary authorization to save images to the camera roll?

To save images to the camera roll, request PHPhotoLibrary authorization by checking the current permission status and prompting the user if needed. Once granted, you can create new assets and programmatically save user-generated content.

Can I use PHImageManager to request and display video assets in my iOS app?

Yes, you can use PHImageManager to request image and video assets. It provides methods to fetch asset representations, allowing your iOS app to display photo library content efficiently by managing asset loading and caching.

Does the iOS Photo Library API allow filtering assets by specific media types?

Yes, the iOS Photo Library API allows filtering PHAsset objects by specific media types. Using PHPickerConfiguration or asset fetch options, you can restrict selection and fetching to images, videos, or other specific asset types.