-
Notifications
You must be signed in to change notification settings - Fork 67
completion not called on UIView.animate on ios 10 and ios 12 #18
Comments
@martinnormark Facing same issue here |
Noticed the same issue on my iPhone 6 (10.3.1). iOS 11 and 12 are okay. Still looking into a proper solution but a temp workaround could be: // HalfModalTransitionAnimator.swift
// @objc func animateTransition(using transitionContext: UIViewControllerContextTransitioning) {
if #available(iOS 11.0, *) {
UIView.animate(withDuration: self.transitionDuration(using: transitionContext), animations: {
from?.view.frame.origin.y = 800
}) { _ in
transitionContext.completeTransition(!transitionContext.transitionWasCancelled)
}
else {
DispatchQueue.main.asyncAfter(deadline: .now() + 0.4) {
transitionContext.completeTransition(!transitionContext.transitionWasCancelled)
}
} |
@apparition47 iOS 12 also has same issue |
For whatever reason the UIPanGestureRecognizer's
Changing this seemed to fix my issue on iOS 10 and allow the transition to complete: // CardModalTransitioningDelegate.swift
var interactiveDismiss = false |
iOS 10.3 also has same issue tks @apparition47 |
Have found a solution on this
in |
@apparition47 That doesn't solves the issue. It only makes transition non-interactive as far as I see. |
Wow great solution I was trouble with this also |
the completion is not called on ios 10 and ios 12. this is strange. can you reproduce this?
The text was updated successfully, but these errors were encountered: