private static void MapContent(WindowHandlerStub handler, IWindow window) { var view = window.Content.ToPlatform(handler.MauiContext); if (window.Content is Shell) { var vc = (window.Content.Handler as IPlatformViewHandler) .ViewController; handler.PlatformView.RootViewController.PresentViewController(vc, false, null); } else { handler.PlatformView.RootViewController.View.AddSubview(view); } }
public static void MapContent(WindowHandlerStub handler, IWindow window) { handler.UpdateContent(); }