What I want to do is take a snapshot from my camera , send it to a server and then the server sends me back the image on a viewController. If the image is in portrait mode t
Swift 3 and Swift 4 use .pi instead
eg:
//rotate 90 degrees myImageView.transform = CGAffineTransform(rotationAngle: .pi / 2) //rotate 180 degrees myImageView.transform = CGAffineTransform(rotationAngle: .pi) //rotate 270 degrees myImageView.transform = CGAffineTransform(rotationAngle: .pi * 1.5)