public override void DismissalTransitionWillBegin()
        {
            base.DismissalTransitionWillBegin();

            PresentedViewController.GetTransitionCoordinator().AnimateAlongsideTransition(context => {
                dimmingView.Alpha = 0;
            }, null);
        }
        public override void DismissalTransitionWillBegin()
        {
            var coordinator = PresentedViewController.GetTransitionCoordinator();

            if (coordinator == null)
            {
                dimmingView.Alpha = 0.0f;
                return;
            }

            coordinator.AnimateAlongsideTransition(_ => dimmingView.Alpha = 0.0f, null);
        }
Beispiel #3
0
        void SetAplhaOnTransitionBegin(float alpha)
        {
            var transitionCoordinator = PresentedViewController.GetTransitionCoordinator();

            if (transitionCoordinator == null)
            {
                dimmingView.Alpha = alpha;
                return;
            }

            transitionCoordinator.AnimateAlongsideTransition(context => {
                dimmingView.Alpha = alpha;
            }, null);
        }
Beispiel #4
0
        public override void PresentationTransitionWillBegin()
        {
            ContainerView.InsertSubview(dimmingView, 0);

            var coordinator = PresentedViewController.GetTransitionCoordinator();

            if (coordinator == null)
            {
                dimmingView.Alpha = 1.0f;
                return;
            }

            coordinator.AnimateAlongsideTransition(_ => dimmingView.Alpha = 1.0f, null);
        }
        public override void PresentationTransitionWillBegin()
        {
            base.PresentationTransitionWillBegin();

            AddViewsToDimmingView();

            dimmingView.Alpha = 0;

            PresentedViewController.GetTransitionCoordinator().AnimateAlongsideTransition(context => {
                dimmingView.Alpha = 1;
            }, null);

            MoveJaguarPrintToPresentedPosition(false);

            UIView.Animate(1, () => {
                MoveJaguarPrintToPresentedPosition(true);
            });
        }
        public override void PresentationTransitionWillBegin()
        {
            dimmingView.Frame                      = ContainerView.Bounds;
            AdditionalContentView.Frame            = ContainerView.Bounds;
            AdditionalContentView.Layer.ZPosition += 1;

            ContainerView.AddSubview(dimmingView);
            ContainerView.AddSubview(AdditionalContentView);

            var coordinator = PresentedViewController.GetTransitionCoordinator();

            if (coordinator == null)
            {
                dimmingView.Alpha = 0.8f;
                return;
            }

            coordinator.AnimateAlongsideTransition(_ => dimmingView.Alpha = 0.8f, null);
        }