From f29d66a0794585a4ec8449e1c0294aa312d01a87 Mon Sep 17 00:00:00 2001 From: Robert Payne Date: Wed, 14 Sep 2016 20:59:59 +1200 Subject: [PATCH] Add deprecated install/uninstall --- Source/Constraint.swift | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Source/Constraint.swift b/Source/Constraint.swift index 493e05f..6123ac5 100644 --- a/Source/Constraint.swift +++ b/Source/Constraint.swift @@ -163,6 +163,16 @@ public class Constraint { // MARK: Public + @available(*, deprecated:3.0, message:"Use activate().") + public func install() { + self.activate() + } + + @available(*, deprecated:3.0, message:"Use deactivate().") + public func uninstall() { + self.deactivate() + } + public func activate() { self.activateIfNeeded() }