Skip to content

Instantly share code, notes, and snippets.

@efremidze
Created October 25, 2017 20:10
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 efremidze/71801a5fc052b5b0aaf6da33c9d8b8b1 to your computer and use it in GitHub Desktop.
Save efremidze/71801a5fc052b5b0aaf6da33c9d8b8b1 to your computer and use it in GitHub Desktop.
extension UILayoutPriority {
static func +(lhs: UILayoutPriority, rhs: Float) -> UILayoutPriority {
return UILayoutPriority(lhs.rawValue + rhs)
}
static func -(lhs: UILayoutPriority, rhs: Float) -> UILayoutPriority {
return UILayoutPriority(lhs.rawValue - rhs)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment