I\'m trying to figure out if there is any way to mirror an image. For example, take a picture of someone\'s face and then cut it in half and show what their face looks like with
You can use below code for Swift 4.0
func didTakePicture(_ real_image: UIImage) { //suppose real_image = :) var flipped_image = UIImage(CGImage: real_image.CGImage!, scale: real_image.scale, orientation: .leftMirrored) // flipped_image is (: }