Add update(priority: ConstraintPriority) method (#467)

* Add update(priority: ConstraintPriority) method

* Fix copy-paste error
This commit is contained in:
Benjamin Chrobot 2017-10-13 05:33:36 -04:00 committed by Robert Payne
parent a07ef8b04c
commit 2c8262ef9f
1 changed files with 6 additions and 0 deletions

View File

@ -214,6 +214,12 @@ public final class Constraint {
return self return self
} }
@discardableResult
public func update(priority: ConstraintPriority) -> Constraint {
self.priority = priority.value
return self
}
@available(*, deprecated:3.0, message:"Use update(offset: ConstraintOffsetTarget) instead.") @available(*, deprecated:3.0, message:"Use update(offset: ConstraintOffsetTarget) instead.")
public func updateOffset(amount: ConstraintOffsetTarget) -> Void { self.update(offset: amount) } public func updateOffset(amount: ConstraintOffsetTarget) -> Void { self.update(offset: amount) }