MatthewKapteyn / MediaPlugin

Take & Pick Photos and Video Plugin for Xamarin and Windows
MIT License
6 stars 2 forks source link

Add loading animation to iOS 14 PHPicker #6

Open MatthewKapteyn opened 3 years ago

MatthewKapteyn commented 3 years ago

Any attempt to throw a view or subview with a loading animation on top of the picker ends up buried behind it. A bit frustrating as the PHPicker can take a bit of time to download icloud files but gives zero user feedback.

We even get an NSProgress handler from LoadFileRepresentation.

MatthewKapteyn commented 3 years ago

Current goal is to show something like this sample UIActivityIndicatorView

https://github.com/xamarin/docs-archive/tree/master/Recipes/ios/standard_controls/popovers/display_a_loading_message

after DidFinishPicking here

https://github.com/MatthewKapteyn/MediaPlugin/blob/c10eda9796335a37319eb13e5ca7e4a487f3bd9a/src/Media.Plugin/iOS/MediaPickerService.cs#L34