I am unable to rotate the image by 90 degrees in swift. I have written below code but there is an error and doesn\'t compile
func imageRotatedByDegrees(old
ImageView?.transform = transform.rotated(by: (CGFloat(Double.pi / 2)))
Swift 4.2
Rotation - right. Works fine.