photos-camera-media

Implement photo picking, camera capture, and media handling in Swift for iOS.

981|50|Updated Mar 3, 2026
One-click install
npx skills add https://github.com/dpearson2699/swift-ios-skills --skill photos-camera-media-dpearson2699
Or copy as Structured Prompt for Agentâ–¼
Please help me install this Agent Skill.
Skill: photos-camera-media
Source: https://github.com/dpearson2699/swift-ios-skills/tree/main/skills/photos-camera-media
Command: npx skills add https://github.com/dpearson2699/swift-ios-skills --skill photos-camera-media-dpearson2699

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the process of integrating photo picking, camera capture, and media handling into your iOS applications, ensuring a smooth and efficient user experience.

Core Features & Use Cases

  • Photo Picking: Utilize PhotosPicker for seamless image and video selection from the user's library.
  • Camera Capture: Implement real-time camera capture sessions for taking photos and recording videos.
  • Media Permissions: Manage and request necessary permissions for accessing the photo library and camera.
  • Image Loading: Efficiently load and display images, including downsampling for large assets.
  • Use Case: Develop an app feature that allows users to upload a profile picture by either selecting an existing photo or taking a new one with the camera, while correctly handling all necessary permissions and loading states.

Quick Start

Use the photos-camera-media skill to implement a SwiftUI view that allows users to select a single image from their photo library.

Frequently Asked Questions about photos-camera-media

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

FAQPage Schema
How do I implement photo picking in SwiftUI using PhotosPicker?â–¼

Photo picking in SwiftUI uses the `PhotosPicker` view to enable seamless image and video selection from a user's library. You configure it for single or multiple selections, then asynchronously load and display the returned image data.

What's the best way to manage camera and photo library permissions in iOS?â–¼

Managing media permissions requires explicitly requesting photo library and camera access before capture or selection. You must add specific usage description strings to your Info.plist and handle all permission states gracefully to ensure a smooth user experience.

How do I set up AVCaptureSession for camera capture and video recording?â–¼

Camera capture and video recording use `AVCaptureSession` to coordinate data flow from device inputs to file outputs. You configure session inputs, add photo or video outputs, and display a preview layer to enable real-time media recording within your Swift application.

How do I efficiently load and downsample large images from the photo library?â–¼

Efficient image loading requires downsampling large photo assets during the data loading process. By configuring loading options to request a specific target size, you reduce memory overhead and ensure images display smoothly without exceeding application memory limits.

Can I use SwiftUI to build a feature that takes a profile picture with the camera?â–¼

You can build a profile picture feature in SwiftUI by combining `PhotosPicker` for library selection and `AVCaptureSession` for camera capture. This approach handles both selecting existing photos and taking new ones while managing the necessary privacy permissions and loading states.