ionic-team / ionic-team/capacitor-camera
iOS: chooseFromGallery no longer uses the system photo picker
- Dominant language
- TypeScript
- Stars
- 4
- Forks
- 1
- Avg merge
- 2d 1h
- Merged PRs (30d)
- 2
Description
Plugin version: 8.2.0, iOS.
**Before** — deprecated `getPhoto` with `CameraSource.Photos` presented `PHPickerViewController`, the iOS system picker (`CameraPlugin.swift`, `presentPhotoPicker`). It has albums and search, and iOS localizes it.
**Now** — `chooseFromGallery` presents a custom SwiftUI view, `IONCAMRPhotoLibraryView` in a `UIHostingController`
(`IONCAMRGalleryBehaviour.displayPhotoLibraryView`). There are no albums and no search, and the navigation title is hardcoded to `"Photo Library"`, so it stays English in a localized app.
This change is not mentioned in the 8.1.0 migration guide or the changelog. For Android the opposite move is documented in the README ("the Android Photo Picker component is now used"), which is why the iOS change looks unintended.
Questions:
1. Was replacing the system picker intended?
2. Can the system picker be used again, or made opt-in?
3. Can the navigation title be localized?
Unrelated to the UI, but same method: the documented `quality`, `targetWidth` and `targetHeight` options are ignored for `chooseFromGallery` on both platforms (related to #69?).
Contributor guide
Research direction
Start with CameraPlugin.swift and IONCAMRGalleryBehaviour.displayPhotoLibraryView, then compare the current custom view with the earlier presentPhotoPicker path. The issue asks whether the replacement was intended, whether the system picker should return or become opt-in, and whether the title can be localized; a maintainer decision is needed before implementation has a defined done state.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, swift
- Domain
- localization, mobile-dev
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100