I would like to use a pinch gesture to change the size of the image. With the code shown below I achieve that, but every time I pinch the picture after that, the image bounces back to the original size.
@IBAction func pinchGestureActivated(_ sender: UIPinchGestureRecognizer) {
imageView.transform = CGAffineTransform(scaleX: sender.scale, y: sender.scale)
}