-
Notifications
You must be signed in to change notification settings - Fork 505
[Bug] iOS: Swipe down to close MediaPicker.PickPhotoAsync navigates back to initial viewcontroller #1757
Comments
Could be good to add that it's probably the following line that it causing the issue:
When the user swipes down, the modal is already dismissed, so the parent view controller will be dismissed. |
I do not think that this is a bug, the method works correctly and returns null. 2021-04-14.20.51.21.mov |
@dimonovdd IIUC, if you present the picker from a modal vc, the line above will dismiss the modal vc. First the user swipes down the picker, which implicitly dismisses the picker. The dismiss call pointed out above will then dismiss the current modal vc, which is not the picker but the modal vc that presented the picker. This leads to the dismissal of a vc that is not owned by the picker code but by the caller. I think if there is no modal vc, the dismiss call will have no effect which is why the video above looks right. |
@rhult @MikaelStalvik Can you send a sample? |
@dimonovdd Here's a sample: To reproduce the issue, perform these steps:
Actual result: Expected result: |
I'll watch it this weekend |
Description
If you swipe down the MediaPicker.PickPhotoAsync on iOS to cancel the modal dialog, the ViewController is dismissed and the user is navigated back to the applications root page.
Steps to Reproduce
Expected Behavior
The modal shall close just in the same way as if Cancel were pressed and the application shall be able to handle the result.
Actual Behavior
The modal is closed and the user is navigated back to the root page.
Swipe down to close the modal dialog shall work in the same was as if you are pressing Cancel and trigger the same code.
Basic Information
The text was updated successfully, but these errors were encountered: