What problem does it solve?
Photo picking, camera capture, and media handling often fail in subtle ways—like incorrect permissions, inefficient image loading, memory spikes, or broken previews—causing slow UX and unstable apps.
Core Features & Use Cases
- SwiftUI Photo Picking with PhotosPicker: Select images with single or multi-selection, apply media filters, and load content asynchronously.
- Camera Capture with AVCaptureSession: Configure and run a camera session, render a live preview, and safely start/stop capture while respecting threading.
- Privacy, Permissions, and Info.plist Guardrails: Implement correct photo library and camera permission flows and required usage description keys.
- Efficient Image Loading & Memory Safety: Downsample large user-selected photos to avoid decoding huge bitmaps and reduce crashes.
Quick Start
Use the photokit skill to design a SwiftUI screen where users can select up to 5 photos with PhotosPicker, asynchronously load selected images, downsample them for thumbnails, and ensure the app handles camera and photo library permissions correctly.