Skip to content

Instantly share code, notes, and snippets.

@soffes
Created April 18, 2016 22:02
Show Gist options
  • Save soffes/6168dc642b431ff01a8f1a3fda25a6c5 to your computer and use it in GitHub Desktop.
Save soffes/6168dc642b431ff01a8f1a3fda25a6c5 to your computer and use it in GitHub Desktop.
import UIKit
extension UIEdgeInsets {
init(_ value: CGFloat) {
top = value
left = value
right = value
bottom = value
}
static let zero = UIEdgeInsets(0)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment