In Swift 2, we could do this to get the rotation and stretch:
let rotate = CGAffineTransformMakeRotation(1) let stretchAndRotate = CGAffineTransformScale(rotate, 0.8, 0.8) label.transform = stretchAndRotate
In Swift 3, the CGAffineTransformScale became the CGAffineTransform and no longer accepts rotation.
What is the easiest way to apply stretch and rotate to an object?
Thanks,
Rob
ios iphone xcode swift core-animation
user2428168
source share