photokit
Installation
SKILL.md
PhotoKit & AVFoundation Capture (iOS)
Photo-library picking, library access, and custom camera capture for a fintech iOS app (document/ID capture, receipt attachments, avatars). Grounded in Apple's PhotosUI, Photos (PhotoKit), and AVFoundation frameworks; targets the iOS 26 era.
- Decision: need a plain image/video pick with no library permission? Use
PhotosPicker(SwiftUI) orPHPickerViewController(UIKit) — both run out of process and hand back only chosen items. Need to enumerate/organize the library, observe changes, or fetch by metadata? That requiresPHPhotoLibraryauthorization and PhotoKit. Need live camera (KYC selfie, ID/cheque scan)? Use AVFoundation. - Cross-refs: OCR / barcode / MRZ / document rectangle detection on a captured frame →
vision-framework; on-device image models →coreml; permission strings & privacy manifest for submission →app-store-review; if a KMPcommonMainscreen needs the picker, expose anexpectcapture interface bound to aniosMainactual→expect-actual.