using Microsoft.Maui.Handlers; using UIKit; namespace Bit.iOS.Core.Handlers { public class CustomWindowHandler : ElementHandler, IWindowHandler { public static IPropertyMapper Mapper = new PropertyMapper(ElementHandler.ElementMapper) { }; public CustomWindowHandler() : base(Mapper) { } protected override UIWindow CreatePlatformElement() { // Haven't tested return UIApplication.SharedApplication.Delegate.GetWindow(); //return Platform.GetCurrentUIViewController().View.Window; } } }