Skip to content

Commit

Permalink
Add update(priority: ConstraintPriority) method (#467)
Browse files Browse the repository at this point in the history
* Add update(priority: ConstraintPriority) method

* Fix copy-paste error
  • Loading branch information
bchrobot authored and robertjpayne committed Oct 13, 2017
1 parent a07ef8b commit 2c8262e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Source/Constraint.swift
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,12 @@ public final class Constraint {
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.")
public func updateOffset(amount: ConstraintOffsetTarget) -> Void { self.update(offset: amount) }

Expand Down

0 comments on commit 2c8262e

Please sign in to comment.