How can I flip a UIImageView
180 degrees, but NOT animating the flip. I just want when it loads, to show it 180 degrees of the original image.
Swift 5.2
imageView.transform = CGAffineTransform(rotationAngle: CGFloat.pi)
In viewDidLoad
or in the method where you are loading the image, do the following:
imageView.transform = CGAffineTransformMakeRotation(M_PI);
Hope this helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With