void OnInteractionChanged(IUIViewControllerTransitionCoordinatorContext context) { if (!context.IsCancelled) { _self._popCompletionTask = new TaskCompletionSource <bool>(); _self.SendPoppedOnCompletion(_self._popCompletionTask.Task); } }
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); } }