From 17a01931dba4cfd3983faf3dfc7071b81c414ff9 Mon Sep 17 00:00:00 2001 From: Robert Payne Date: Thu, 4 Aug 2016 10:57:30 +1200 Subject: [PATCH] Deprecate priority helpers --- Source/ConstraintMakerPriortizable.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/ConstraintMakerPriortizable.swift b/Source/ConstraintMakerPriortizable.swift index 9616a38..c5fe11a 100644 --- a/Source/ConstraintMakerPriortizable.swift +++ b/Source/ConstraintMakerPriortizable.swift @@ -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)