Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1897 from xamarin/jamesmontemagno-patch-3
Browse files Browse the repository at this point in the history
Set the PopoverPresentationController for files too
  • Loading branch information
jfversluis authored Jan 18, 2022
2 parents 66d4a60 + 801f849 commit 7f07d01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Xamarin.Essentials/Share/Share.ios.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 7f07d01

Please sign in to comment.