internal void SetActiveScreen(UIViewController viewController) { if (viewController != null) { ReplPage?.SetContext(viewController); } }
internal void SetActiveScene(UIScene scene) { var rootVc = (scene as UIWindowScene).Windows[0]?.RootViewController; if (rootVc != null) { ReplPage?.SetContext(rootVc); } }