From 98a69b15655c7e741dc22e6c95fd24440607123f Mon Sep 17 00:00:00 2001 From: James Montemagno Date: Thu, 7 Oct 2021 14:43:22 -0700 Subject: [PATCH] Set the PopoverPresentationController for files too Fixes #1896 --- Xamarin.Essentials/Share/Share.ios.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Xamarin.Essentials/Share/Share.ios.cs b/Xamarin.Essentials/Share/Share.ios.cs index 6d40e5cd6..162415527 100644 --- a/Xamarin.Essentials/Share/Share.ios.cs +++ b/Xamarin.Essentials/Share/Share.ios.cs @@ -58,7 +58,7 @@ static Task PlatformRequestAsync(ShareMultipleFilesRequest request) { activityController.PopoverPresentationController.SourceView = vc.View; - if (request.PresentationSourceBounds != Rectangle.Empty) + if (request.PresentationSourceBounds != Rectangle.Empty || Platform.HasOSVersion(13, 0)) activityController.PopoverPresentationController.SourceRect = request.PresentationSourceBounds.ToPlatformRectangle(); }