Last active
February 29, 2020 10:20
-
-
Save jeffery812/34f8add6423365690bc36bee01f4e5b8 to your computer and use it in GitHub Desktop.
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
public extension CGSize { | |
public func rescale(_ scale: CGFloat) -> CGSize { | |
return applying(CGAffineTransform(scaleX: scale, y: scale)) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment