You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attempt to present <UIDocumentPickerViewController: 0x1252d06a0> on
<Microsoft_Maui_Controls_Platform_Compatibility_ShellFlyoutRenderer: 0x10a9aa160> (from
<Microsoft_Maui_Controls_Platform_Compatibility_ShellFlyoutRenderer: 0x10a9aa160>) which is already presenting
<Microsoft_Maui_Controls_Platform_ModalWrapper: 0x139806360>.
Expected Behavior
Don't crash.
Or at least give a way to choose the UIViewController on which to display the documentPickerViewController.
Example corner cases that changes the key window hierarchy.
screen recording is ON.
screen sharing is ON. For ex using the microsoft store app "AirPlay Screen Mirroring Receiver"
a "popup" is already presented (this case)
Instead, you should use:
Platform.GetCurrentUIViewController()
varpresentingVc=Platform.GetCurrentUIViewController();if(presentingVc!=null){UIApplication.SharedApplication.InvokeOnMainThread(()=>{varyourVC= ...presentingVc.PresentViewController(yourVC,true,null);});}elseLog?.LogWarning("Input: no window/nav controller on which to display");
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
Did you read the "Reporting a bug" section on Contributing file?
Current Behavior
Crash log:
Expected Behavior
Don't crash.
Or at least give a way to choose the UIViewController on which to display the documentPickerViewController.
Steps To Reproduce
Code in PickCommand:
Link to public reproduction project repository
Needs reproduction
Environment
Anything else?
The source code is using this key window to display the controller:
Example corner cases that changes the key window hierarchy.
Instead, you should use:
The text was updated successfully, but these errors were encountered: