Skip to content

Commit

Permalink
Guard
Browse files Browse the repository at this point in the history
  • Loading branch information
MartyIX committed Oct 19, 2024
1 parent f3167ac commit ce0b89d
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/Core/src/Handlers/Window/WindowHandler.iOS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,20 @@ protected override void ConnectHandler(UIWindow platformView)
if (!OperatingSystem.IsIOSVersionAtLeast(16))
{
UpdateVirtualViewFrame(platformView);
}
else
{
_proxy.Connect(VirtualView, platformView);
}

_proxy.Connect(VirtualView, platformView);
}

protected override void DisconnectHandler(UIWindow platformView)
{
_proxy.Disconnect();
if (OperatingSystem.IsIOSVersionAtLeast(16))
{
_proxy.Disconnect();
}

base.DisconnectHandler(platformView);
}

Expand Down

0 comments on commit ce0b89d

Please sign in to comment.