0

I am currently working on arplay UI. But when run the Carplay, UI is overlapping with left side bar. I have attached the screen shot as well.

UIWindowScene windowScene = new UIWindowScene(session, connectionOptions);
        
var ContainerViewController = UtilityIOS.CPStoryboard.InstantiateViewController("ContainerVC") as ContainerVC;
var registerController = UtilityIOS.CPStoryboard.InstantiateViewController("CarplayNavigationDashboardVC") as UINavigationController;

ContainerViewController.AddChildViewController(registerController);
registerController.View.Frame = new CGRect(0, 0, ContainerViewController.View.Frame.Width, ContainerViewController.View.Frame.Height);
        
ContainerViewController.View.AddSubview(registerController.View);
registerController.DidMoveToParentViewController(ContainerViewController);
        
this.Window = new UIWindow(windowScene);
// this.Window.Frame = new CGRect(40, 0, UIScreen.MainScreen.Bounds.Width - 40, UIScreen.MainScreen.Bounds.Height);
this.Window.RootViewController = ContainerViewController;
this.Window.MakeKeyAndVisible();

enter image description here

HangarRash
  • 7,314
  • 5
  • 5
  • 32
Anu
  • 41
  • 3

0 Answers0