mirror of https://github.com/SnapKit/SnapKit
Add deprecated install/uninstall
This commit is contained in:
parent
ffd450754a
commit
f29d66a079
|
@ -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()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue