-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integrate PHPickerViewController #21190
Comments
One of the other benefits of using the native picker is that it runs out of process, so it doesn't contribute to the app's memory usage. It can be hugely beneficial, for example, if you are editing a post that already requires a lot of memory. It will also never bring the app down if it crashes. Uploading media from the device must be one of the major reasons users will want the app on their phones. It has to work flawlessly. |
@kean, thanks for the proposal! I agree with your reasoning, especially given the benefits of memory management. Plus, since it's native it will require less maintenance compared to maintaining our own library MediaPicker-iOS. PHPickerViewController is fairly new, when starting fresh I doubt we would choose to create our own MediaPicker-iOS. To make a transparent transition, I think it would be good to map the features that we use of MediaPicker-iOS and PHPickerViewController to be transparent about what can be supported out of the box and what we would lose out (if anything) if we make the transition. A quick search shows that the picker is used not only for picking the photo from the device but also for |
Came across this PR from your comment re; KPIs. Please push to make this happen and advocate for same on Android. Sounds great. |
This approach 100% makes sense when the user wants to access all their device images. I just wanted to check something. We have some explorations where we're showing media in line.
Of course in both cases we'd need an entry point to the full 'phone library' of images. But I'm just wondering does what we're doing in these cases play well with what you're proposing here, or does it contradict what you're suggesting? |
@osullivanchris, the iOS has the APIs to do both:
|
@staskus we are on track to completely eliminate the need for the MediaPicker repo: the Photos picker is already in the works, and the Media screen will be re-written to Swift in phase 2. It will be a huge win to help modernize the codebase. The only missing part is the "Free" libraries that, based on Tracks, virtually nobody use. |
Thanks for sharing @kean, that's great news! 👍 |
I bumped some of the PRs in this issue from 23.1 to 23.2 because they were not ready to merge and the 23.1 code freeze will start shortly. I'll do the same with this issue, for consistency. If this cannot wait two weeks and it's important that it makes it into this release, let me know and we'll organize a new beta once ready. |
It's done. |
Integrate
PHPickerViewController
.Changes
Out of the Scope:
Fixes
These fixes were made in the scope of the task:
Advantages
Limitations
PHPickerViewController
, so it won't be possible to add "Edit" feature to the picker. Fortunately, the app already allows the users to edit the photos after selection, and based on Tracks, the number of users who take advantage of editing is low (<2% of total uploads).Closed Defects
Replacing the custom picker with a native allowed us to close the following issues:
More Info
The text was updated successfully, but these errors were encountered: