This 2 lines of code produce a image that is 90 counter clockwise from the way i took the image. Any ideas how I can use code to rotate the image 90 degrees clockwise?
let l = photoDispaly.image
l?.draw(in: CGRect(x: 10, y: 240.5, width: 435 , height: 435), blendMode: .normal, alpha: 1.0)
You can rotate the image view 90 degrees clockwise through this line of code.
yourImageView.transform = CGAffineTransform(rotationAngle: CGFloat(M_PI_2))