mirror of https://github.com/SnapKit/SnapKit
Update deprecated code to Swift 2.2
This commit is contained in:
parent
1ca48df9b1
commit
2d095654b4
|
@ -127,7 +127,7 @@ public extension View {
|
||||||
|
|
||||||
:returns: the constraints made
|
:returns: the constraints made
|
||||||
*/
|
*/
|
||||||
public func snp_prepareConstraints(file: String = __FILE__, line: UInt = __LINE__, @noescape closure: (make: ConstraintMaker) -> Void) -> [Constraint] {
|
public func snp_prepareConstraints(file: String = #file, line: UInt = #line, @noescape closure: (make: ConstraintMaker) -> Void) -> [Constraint] {
|
||||||
return ConstraintMaker.prepareConstraints(view: self, file: file, line: line, closure: closure)
|
return ConstraintMaker.prepareConstraints(view: self, file: file, line: line, closure: closure)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -136,7 +136,7 @@ public extension View {
|
||||||
|
|
||||||
:param: closure that will be passed the `ConstraintMaker` to make the constraints with
|
:param: closure that will be passed the `ConstraintMaker` to make the constraints with
|
||||||
*/
|
*/
|
||||||
public func snp_makeConstraints(file: String = __FILE__, line: UInt = __LINE__, @noescape closure: (make: ConstraintMaker) -> Void) -> Void {
|
public func snp_makeConstraints(file: String = #file, line: UInt = #line, @noescape closure: (make: ConstraintMaker) -> Void) -> Void {
|
||||||
ConstraintMaker.makeConstraints(view: self, file: file, line: line, closure: closure)
|
ConstraintMaker.makeConstraints(view: self, file: file, line: line, closure: closure)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -147,7 +147,7 @@ public extension View {
|
||||||
|
|
||||||
:param: closure that will be passed the `ConstraintMaker` to update the constraints with
|
:param: closure that will be passed the `ConstraintMaker` to update the constraints with
|
||||||
*/
|
*/
|
||||||
public func snp_updateConstraints(file: String = __FILE__, line: UInt = __LINE__, @noescape closure: (make: ConstraintMaker) -> Void) -> Void {
|
public func snp_updateConstraints(file: String = #file, line: UInt = #line, @noescape closure: (make: ConstraintMaker) -> Void) -> Void {
|
||||||
ConstraintMaker.updateConstraints(view: self, file: file, line: line, closure: closure)
|
ConstraintMaker.updateConstraints(view: self, file: file, line: line, closure: closure)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -156,7 +156,7 @@ public extension View {
|
||||||
|
|
||||||
:param: closure that will be passed the `ConstraintMaker` to remake the constraints with
|
:param: closure that will be passed the `ConstraintMaker` to remake the constraints with
|
||||||
*/
|
*/
|
||||||
public func snp_remakeConstraints(file: String = __FILE__, line: UInt = __LINE__, @noescape closure: (make: ConstraintMaker) -> Void) -> Void {
|
public func snp_remakeConstraints(file: String = #file, line: UInt = #line, @noescape closure: (make: ConstraintMaker) -> Void) -> Void {
|
||||||
ConstraintMaker.remakeConstraints(view: self, file: file, line: line, closure: closure)
|
ConstraintMaker.remakeConstraints(view: self, file: file, line: line, closure: closure)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue