Switch to AVCapture to replace the legacy UIImagePicker for taking photos
The old UIImagePicker stuff has been deprecated by Apple, at least for picking existing photos. It's still alive for taking new photos with the camera, but we have switched to the new PHPhotos-based PhotosPicker for everything else.
This Apple Developer forum thread recommends switching to AVCapture.
To summarize, for accessing the photo library, use PHPicker. For the capture needs in your app, use either AVCapture (which gives you the greatest amount of control and flexibility), or the capture portions of UIImagePickerController.
Sounds like we would enjoy the greater control and flexibility, and making the switch would let us get rid of the old legacy UIImagePickerController stuff like our ImagePicker class.
Documentation is here: Photo capture