Created
September 5, 2016 15:29
-
-
Save dfelber/9f1a46852e5cda612b4318c323521567 to your computer and use it in GitHub Desktop.
Initializer for UIEdgeInsets with one value for top, bottom, left and right
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 UIEdgeInsets { | |
init(inset: CGFloat) { | |
self.top = inset | |
self.bottom = inset | |
self.left = inset | |
self.right = inset | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment