Skip to content

Instantly share code, notes, and snippets.

View jorgifumi's full-sized avatar

Jorge Lucena jorgifumi

View GitHub Profile
@jorgifumi
jorgifumi / ImageRotationHelper.swift
Last active October 5, 2017 11:37
Image rotation helper
extension UIImage {
var fixedOrientation: UIImage {
if (imageOrientation == UIImageOrientation.up) {
return self
}
var transform:CGAffineTransform = CGAffineTransform.identity
if (imageOrientation == UIImageOrientation.down