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

Commit

Permalink
Set the PopoverPresentationController for files too
Browse files Browse the repository at this point in the history
Fixes #1896
  • Loading branch information
jamesmontemagno authored Oct 7, 2021
1 parent 8657192 commit 98a69b1
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 98a69b1

Please sign in to comment.