Skip to content
This repository was archived by the owner on Aug 25, 2020. It is now read-only.
This repository was archived by the owner on Aug 25, 2020. It is now read-only.

completion not called on UIView.animate on ios 10 and ios 12 #18

@armintelker

Description

@armintelker

the completion is not called on ios 10 and ios 12. this is strange. can you reproduce this?

HalfModalTransitionAnimator.swift

        UIView.animate(withDuration: transitionDuration(using: transitionContext), animations: {
            if self.edge == .maxYEdge {
                from.view.frame.origin.y = 800
            } else {
                from.view.alpha = 0
            }
        }, completion: { _ in
            transitionContext.completeTransition(!transitionContext.transitionWasCancelled)
        })

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions