Skip to content

Commit

Permalink
Merge pull request #709 from Phenek/develop
Browse files Browse the repository at this point in the history
[iOS] Rg.Plugins.Popup 2.0.0.14 : Null Reference Exception
  • Loading branch information
martijn00 authored Oct 27, 2021
2 parents b3ed3bf + 5820b41 commit 4d4d55b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ public static void UpdateSize(this PopupPageRenderer renderer)

Thickness systemPadding;

if (UIDevice.CurrentDevice.CheckSystemVersion(11, 0))
if (UIDevice.CurrentDevice.CheckSystemVersion(11, 0)
&& UIApplication.SharedApplication.KeyWindow != null)
{
var safeAreaInsets = UIApplication.SharedApplication.KeyWindow.SafeAreaInsets;

Expand Down

0 comments on commit 4d4d55b

Please sign in to comment.