How to solve this problem with custom transition in iOS?
up vote
3
down vote
favorite
I built a class to implement a circular transition between view controllers. When I hit the button to navigate to the other view controller a circle starts growing from the button until it fills the screen with the new controller. When I dismiss the view controller I expected this circle to shrink down back to the original position. It's also working. The only problem is that when the dismiss is underway the back of the screen while the circle is shrinking is completely black and after the animation is completed the new viewController appears abruptly. Here are some photos of the effect: Here's the code of the custom class: class customTransition: NSObject, UIViewControllerAnimatedTransitioning{ var duration: TimeInterval = 0.5 var startPoint = CGPoint.zero var circle = UIView() va...