void BackButton_TouchUpInside(object sender, EventArgs e)
        {
            customMapRenderer.ClearAllReceivers();
            customMapRenderer.removeOverlays();
            StopTimers();

            var window        = UIApplication.SharedApplication.KeyWindow;
            var bottomSheetVC = new BottomSheetViewController(customPin, map, nativeMap, customMapRenderer);

            bottomSheetVC.AddChildViewController(window.RootViewController.ChildViewControllers[0]);

            window.RootViewController = bottomSheetVC;
        }
Ejemplo n.º 2
0
        public async Task addSlideUpSheet(CustomPin pin, CustomMap map, MKMapView nativeMap, CustomMapRenderer customMapRenderer)
        {
            //Get the current UI Window
            var window = UIApplication.SharedApplication.KeyWindow;
            BottomSheetViewController bottomSheetVC = new BottomSheetViewController(pin, map, nativeMap, customMapRenderer);


            var rootVC = window.RootViewController;

            if (rootVC != null)
            {
                bottomSheetVC.AddChildViewController(rootVC);
            }

            window.RootViewController = bottomSheetVC;
        }