Add deprecated install/uninstall

This commit is contained in:
Robert Payne 2016-09-14 20:59:59 +12:00
parent ffd450754a
commit f29d66a079
1 changed files with 10 additions and 0 deletions

View File

@ -163,6 +163,16 @@ public class Constraint {
// MARK: Public // 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() { public func activate() {
self.activateIfNeeded() self.activateIfNeeded()
} }