Deprecate priority helpers

This commit is contained in:
Robert Payne 2016-08-04 10:57:30 +12:00
parent f5511c3bac
commit 17a01931db
1 changed files with 4 additions and 0 deletions

View File

@ -36,16 +36,19 @@ public class ConstraintMakerPriortizable: ConstraintMakerFinalizable {
return self
}
@available(*, deprecated:0.40.0, message:"Use priority(_ amount: ConstraintPriorityTarget) instead.")
@discardableResult
public func priorityRequired() -> ConstraintMakerFinalizable {
return self.priority(1000)
}
@available(*, deprecated:0.40.0, message:"Use priority(_ amount: ConstraintPriorityTarget) instead.")
@discardableResult
public func priorityHigh() -> ConstraintMakerFinalizable {
return self.priority(750)
}
@available(*, deprecated:0.40.0, message:"Use priority(_ amount: ConstraintPriorityTarget) instead.")
@discardableResult
public func priorityMedium() -> ConstraintMakerFinalizable {
#if os(iOS) || os(tvOS)
@ -55,6 +58,7 @@ public class ConstraintMakerPriortizable: ConstraintMakerFinalizable {
#endif
}
@available(*, deprecated:0.40.0, message:"Use priority(_ amount: ConstraintPriorityTarget) instead.")
@discardableResult
public func priorityLow() -> ConstraintMakerFinalizable {
return self.priority(250)