xs6615
4
At the end of the video, you added to PopAnimator, inside UIView.animate:
if !self.presenting {
let viewController = transitionContext.viewController(forKey: .to) as! ViewController
viewController.selectedImage!.isHidden = false
}
However, when practicing before your video, I simply added a single line to the ViewController and this had the same result
func animationController(
forDismissed dismissed: UIViewController
) -> UIViewControllerAnimatedTransitioning? {
transition.presenting = false
-> selectedImage?.isHidden = false
return transition
}
Any reason, longer term mine idea might hit issues or conflicts?
@catie Can you please help with this when you get a chance? Thank you - much appreciated! :]