We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a761e83 commit 9b1d189Copy full SHA for 9b1d189
Rg.Plugins.Popup/Platforms/Ios/Impl/PopupPlatformIos.cs
@@ -58,7 +58,9 @@ public Task AddAsync(PopupPage page)
58
PopupWindow window;
59
if (IsiOS13OrNewer)
60
{
61
- var connectedScene = UIApplication.SharedApplication.ConnectedScenes.ToArray().FirstOrDefault(x => x.ActivationState == UISceneActivationState.ForegroundActive);
+ var connectedScene = UIApplication.SharedApplication.ConnectedScenes.ToArray()
62
+ .OrderBy(x => x is UIWindowScene)
63
+ .FirstOrDefault(x => x.ActivationState == UISceneActivationState.ForegroundActive);
64
if (connectedScene != null && connectedScene is UIWindowScene windowScene)
65
window = new PopupWindow(windowScene);
66
else
0 commit comments