diff --git a/src/iOS/Services/DeviceActionService.cs b/src/iOS/Services/DeviceActionService.cs index 720b1218e..10df6d9e6 100644 --- a/src/iOS/Services/DeviceActionService.cs +++ b/src/iOS/Services/DeviceActionService.cs @@ -152,6 +152,13 @@ namespace Bit.iOS.Services e.DocumentPicker.DidPickDocument += DocumentPicker_DidPickDocument; }; + var root = UIApplication.SharedApplication.KeyWindow.RootViewController; + if(picker.PopoverPresentationController != null && root != null) + { + picker.PopoverPresentationController.SourceView = root.View; + picker.PopoverPresentationController.SourceRect = root.View.Bounds; + } + controller.PresentViewController(picker, true, null); return Task.FromResult(0); }