mirror of https://github.com/SnapKit/SnapKit
Deprecate priority helpers
This commit is contained in:
parent
f5511c3bac
commit
17a01931db
|
@ -36,16 +36,19 @@ public class ConstraintMakerPriortizable: ConstraintMakerFinalizable {
|
||||||
return self
|
return self
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@available(*, deprecated:0.40.0, message:"Use priority(_ amount: ConstraintPriorityTarget) instead.")
|
||||||
@discardableResult
|
@discardableResult
|
||||||
public func priorityRequired() -> ConstraintMakerFinalizable {
|
public func priorityRequired() -> ConstraintMakerFinalizable {
|
||||||
return self.priority(1000)
|
return self.priority(1000)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@available(*, deprecated:0.40.0, message:"Use priority(_ amount: ConstraintPriorityTarget) instead.")
|
||||||
@discardableResult
|
@discardableResult
|
||||||
public func priorityHigh() -> ConstraintMakerFinalizable {
|
public func priorityHigh() -> ConstraintMakerFinalizable {
|
||||||
return self.priority(750)
|
return self.priority(750)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@available(*, deprecated:0.40.0, message:"Use priority(_ amount: ConstraintPriorityTarget) instead.")
|
||||||
@discardableResult
|
@discardableResult
|
||||||
public func priorityMedium() -> ConstraintMakerFinalizable {
|
public func priorityMedium() -> ConstraintMakerFinalizable {
|
||||||
#if os(iOS) || os(tvOS)
|
#if os(iOS) || os(tvOS)
|
||||||
|
@ -55,6 +58,7 @@ public class ConstraintMakerPriortizable: ConstraintMakerFinalizable {
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@available(*, deprecated:0.40.0, message:"Use priority(_ amount: ConstraintPriorityTarget) instead.")
|
||||||
@discardableResult
|
@discardableResult
|
||||||
public func priorityLow() -> ConstraintMakerFinalizable {
|
public func priorityLow() -> ConstraintMakerFinalizable {
|
||||||
return self.priority(250)
|
return self.priority(250)
|
||||||
|
|
Loading…
Reference in New Issue