Created
March 2, 2018 12:00
-
-
Save eugenebokhan/78e577ddc3289852311a2fcf94dcfbe2 to your computer and use it in GitHub Desktop.
CGRect extensions
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
extension CGRect { | |
var mid: CGPoint { | |
return CGPoint(x: midX, y: midY) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment