示例#1
0
 void OnInteractionChanged(IUIViewControllerTransitionCoordinatorContext context)
 {
     if (!context.IsCancelled)
     {
         _self._popCompletionTask = new TaskCompletionSource <bool>();
         _self.SendPoppedOnCompletion(_self._popCompletionTask.Task);
     }
 }
示例#2
0
        public static UIView GetTransitionViewController(this IUIViewControllerTransitionCoordinatorContext This, UITransitionViewControllerKind kind)
        {
            switch (kind)
            {
            case UITransitionViewControllerKind.ToView:
                return(This.GetTransitionViewControllerForKey(UITransitionContext.ToViewKey));

            case UITransitionViewControllerKind.FromView:
                return(This.GetTransitionViewControllerForKey(UITransitionContext.FromViewKey));

            default:
                return(null);
            }
        }