photosui

Implement SwiftUI PhotosPicker and PHPhotoLibrary with authorization and change observation.

299|16|Updated Feb 19, 2026
One-click install
npx skills add https://github.com/Prisma-Labs-Dev/apple-skills --skill photosui-prisma-labs-dev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: photosui
Source: https://github.com/Prisma-Labs-Dev/apple-skills/tree/main/skills/photosui
Command: npx skills add https://github.com/Prisma-Labs-Dev/apple-skills --skill photosui-prisma-labs-dev

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill simplifies the integration of complex Apple Photos framework APIs, helping developers navigate the nuances of the PhotosPicker and PHPhotoLibrary without getting lost in documentation.

Core Features & Use Cases

  • PhotosPicker Integration: Quickly implement SwiftUI-based image and video selection with custom filtering.
  • Library Management: Access and manage shared photo library assets, including authorization handling and change observation.
  • Use Case: If you are building a social media app, use this Skill to guide the implementation of a multi-selection photo picker that filters out screenshots and handles asset loading via Transferable.

Quick Start

Use the photosui skill to explain how to implement a SwiftUI PhotosPicker that allows users to select multiple images while excluding screenshots.

Frequently Asked Questions about photosui

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

FAQPage Schema
How do I implement a SwiftUI PhotosPicker for multiple image selection?

Implement a SwiftUI PhotosPicker for multiple image selection by binding it to a collection of PhotosPickerItems. You apply filtering to restrict selection to specific media types like images while excluding others like screenshots.

How does PhotoKit handle library authorization and asset change observation?

PhotoKit handles library authorization by requesting access levels before reading assets, and tracks asset change observation through PHPhotoLibrary. Registering a change observer allows your app to respond dynamically to library modifications.

Can I filter out screenshots when using the iOS PhotosPicker?

Yes, you can filter out screenshots when using the iOS PhotosPicker by applying filtering conditions. This allows your app to restrict selection to standard photos and videos, ignoring unwanted media types like screenshots.

What is the Transferable conformance for in iOS 16+ photo selection?

Transferable conformance in iOS 16+ photo selection simplifies loading selected assets into your app. It enables seamless data transfer of image and video objects directly from the PhotosPicker into your SwiftUI views.

What's the best way to manage shared photo library assets in iOS?

The best way to manage shared photo library assets in iOS is using the PhotoKit framework. It provides APIs for accessing shared assets, handling library authorization, and observing real-time changes to the photo library.

Do I need PhotoKit to observe photo library changes in a SwiftUI app?

Yes, you need PhotoKit to observe photo library changes in a SwiftUI app. Registering a PHPhotoLibrary change observer is required to track asset modifications and update your app's UI when the library is altered.