mirror of https://github.com/SnapKit/SnapKit
Add support for UILayoutPriority as priority target. (#466)
* Add support for UILayoutPriority as priority target. * Fixed for tvOS
This commit is contained in:
parent
c0f66e42be
commit
a07ef8b04c
|
@ -73,3 +73,13 @@ extension CGFloat: ConstraintPriorityTarget {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
#if os(iOS) || os(tvOS)
|
||||
extension UILayoutPriority: ConstraintPriorityTarget {
|
||||
|
||||
public var constraintPriorityTargetValue: Float {
|
||||
return self.rawValue
|
||||
}
|
||||
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue