Created
January 26, 2018 12:20
-
-
Save Marcocanc/21690775779121e1423518b4548daf17 to your computer and use it in GitHub Desktop.
UILayoutPriority Offset
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 UILayoutPriority { | |
/// Returns a UILayoutPriority that offsets an existing one by the specified value. | |
static func offset(_ prio: UILayoutPriority, by offset: Float) -> UILayoutPriority { | |
return UILayoutPriority(rawValue: prio.rawValue + offset) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment