Created
June 1, 2017 18:01
-
-
Save jaclync/647d3bc97f06a62dcf16b722338aac76 to your computer and use it in GitHub Desktop.
UIImage+Rotate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func QL_rotate(scale: CGFloat = 1, orientation: UIImageOrientation) -> UIImage { | |
guard let cgImage = cgImage else { fatalError() } | |
return UIImage(cgImage: cgImage, scale: scale, orientation: orientation) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment