The animation will always take the shortest way. Therefore CGFloat.pi and -CGFloat.pi animates in the same position.
A negative value specifies the clockwise rotation
For clockwise rotation with angle .pi
imageView.transform = CGAffineTransform(rotationAngle: CGFloat.pi * -1.001)
clockwise rotation
withangle
.piimageView.transform = CGAffineTransform(rotationAngle: CGFloat.pi * -1.001)