Skip to content

iOS: chooseFromGallery no longer uses the system photo picker #74

Description

@nikzaugg

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.

NowchooseFromGallery 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?).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions