mirror of https://github.com/SnapKit/SnapKit
Fix deprecated APIs
This commit is contained in:
parent
1071951dc9
commit
f785886d3a
|
@ -67,15 +67,15 @@ public class ConstraintMakerRelatable {
|
||||||
return editable
|
return editable
|
||||||
}
|
}
|
||||||
|
|
||||||
public func equalTo(other: ConstraintRelatableTarget, _ file: String = __FILE__, _ line: UInt = __LINE__) -> ConstraintMakerEditable {
|
public func equalTo(other: ConstraintRelatableTarget, _ file: String = #file, _ line: UInt = #line) -> ConstraintMakerEditable {
|
||||||
return self.relatedTo(other, relation: .Equal, file: file, line: line)
|
return self.relatedTo(other, relation: .Equal, file: file, line: line)
|
||||||
}
|
}
|
||||||
|
|
||||||
public func lessThanOrEqualTo(other: ConstraintRelatableTarget, _ file: String = __FILE__, _ line: UInt = __LINE__) -> ConstraintMakerEditable {
|
public func lessThanOrEqualTo(other: ConstraintRelatableTarget, _ file: String = #file, _ line: UInt = #line) -> ConstraintMakerEditable {
|
||||||
return self.relatedTo(other, relation: .LessThanOrEqual, file: file, line: line)
|
return self.relatedTo(other, relation: .LessThanOrEqual, file: file, line: line)
|
||||||
}
|
}
|
||||||
|
|
||||||
public func greaterThanOrEqualTo(other: ConstraintRelatableTarget, _ file: String = __FILE__, line: UInt = __LINE__) -> ConstraintMakerEditable {
|
public func greaterThanOrEqualTo(other: ConstraintRelatableTarget, _ file: String = #file, line: UInt = #line) -> ConstraintMakerEditable {
|
||||||
return self.relatedTo(other, relation: .GreaterThanOrEqual, file: file, line: line)
|
return self.relatedTo(other, relation: .GreaterThanOrEqual, file: file, line: line)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue