Slide 20
Slide 20 text
ζʔϜΞχϝʔγϣϯ
transitionImageView = UIImageView(image: referenceImage)
transitionImageView.contentMode = .scaleAspectFill
transitionImageView.clipsToBounds = true
transitionImageView.frame = fromReferenceImageViewFrame
containerView.addSubview(transitionImageView)
…
UIView.animate(
withDuration: transitionDuration(using: transitionContext),
delay: 0,
options: [],
animations: {
…
self.transitionImageView?.frame = finalSize
…
},
completion: { completed in
…
self.transitionImageView?.removeFromSuperview()
…
}
)