Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aufflick/0be9a523f8c1527b66d4e15232296700 to your computer and use it in GitHub Desktop.
Save aufflick/0be9a523f8c1527b66d4e15232296700 to your computer and use it in GitHub Desktop.
extension UIView {
convenience init(translateMasks: Bool, frame: CGRect = CGRectZero) {
self.init(frame: frame)
self.translatesAutoresizingMaskIntoConstraints = translateMasks
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment