Created
April 1, 2022 08:51
-
-
Save mbernson/a2802b6ebf55762f5d97ed6bf9aa2a8e to your computer and use it in GitHub Desktop.
Flip vertical using CGAffineTransform
This file contains hidden or 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
import UIKit | |
extension CGAffineTransform { | |
static func flipVertical(height: CGFloat) -> Self { | |
CGAffineTransform(a: 1, b: 0, c: 0, d: -1, tx: 0, ty: height) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment