Slide 38
Slide 38 text
Implementation
public class func transitionBackgroundView(overlayView: UIView, location:CGPoint) {
let screenShotView = ModalAnimator.screenShotView(overlayView: overlayView)
let scale = self.map(
value: location.y, inMin: 0, inMax: UIScreen.main.bounds.height, outMin: 0.9, outMax: 1.0)
let transform = CATransform3DMakeScale(scale, scale, 1)
screenShotView.layer.removeAllAnimations()
screenShotView.layer.transform = transform
screenShotView.layoutIfNeeded()
}
• Transition in real time
5SBOTGFSBNPVOUPGNPWFNFOU
(FU*NBHF