Update PopupWindow.cs

This commit is contained in:
Ieuan Walker
2024-09-17 13:29:26 +01:00
committed by GitHub
parent 4c1548b5b2
commit bce14b7a49

View File

@@ -24,7 +24,7 @@ namespace Mopups.Platforms.iOS
}
public override UIView? HitTest(CGPoint point, UIEvent? uievent)
public override UIView? HitTest(CGPoint point, UIEvent? uievent)
{
try
{
@@ -52,6 +52,12 @@ namespace Mopups.Platforms.iOS
}
catch(Exception)
{
// Perform any necessary cleanup here
RootViewController?.View?.RemoveFromSuperview();
RootViewController = null;
Hidden = true;
Dispose();
return null;
}
}