-
-
Save damodarnamala/d110f59b1c111acb27bcfd4d5ba12919 to your computer and use it in GitHub Desktop.
Provides a CGAffineTransform suitable for flipping the Y Axis.
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
private func flipped(size: CGSize) -> CGAffineTransform { | |
let mirror = CGAffineTransform(scaleX: 1, y: -1) | |
let translate = CGAffineTransform(translationX: 0, y: size.height) | |
return mirror.concatenating(translate) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment