|
|
@@ -75,12 +75,12 @@ public class ConstraintMakerRelatable {
|
|
|
}
|
|
|
|
|
|
@discardableResult
|
|
|
- public func equalTo(_ other: ConstraintRelatableTarget, _ file: String = #file, _ line: UInt = #line) -> ConstraintMakerEditable {
|
|
|
+ public func equalTo(_ other: ConstraintRelatableTarget, _ file: String = #fileID, _ line: UInt = #line) -> ConstraintMakerEditable {
|
|
|
return self.relatedTo(other, relation: .equal, file: file, line: line)
|
|
|
}
|
|
|
|
|
|
@discardableResult
|
|
|
- public func equalToSuperview(_ file: String = #file, _ line: UInt = #line) -> ConstraintMakerEditable {
|
|
|
+ public func equalToSuperview(_ file: String = #fileID, _ line: UInt = #line) -> ConstraintMakerEditable {
|
|
|
guard let other = self.description.item.superview else {
|
|
|
fatalError("Expected superview but found nil when attempting make constraint `equalToSuperview`.")
|
|
|
}
|
|
|
@@ -88,12 +88,12 @@ public class ConstraintMakerRelatable {
|
|
|
}
|
|
|
|
|
|
@discardableResult
|
|
|
- public func lessThanOrEqualTo(_ other: ConstraintRelatableTarget, _ file: String = #file, _ line: UInt = #line) -> ConstraintMakerEditable {
|
|
|
+ public func lessThanOrEqualTo(_ other: ConstraintRelatableTarget, _ file: String = #fileID, _ line: UInt = #line) -> ConstraintMakerEditable {
|
|
|
return self.relatedTo(other, relation: .lessThanOrEqual, file: file, line: line)
|
|
|
}
|
|
|
|
|
|
@discardableResult
|
|
|
- public func lessThanOrEqualToSuperview(_ file: String = #file, _ line: UInt = #line) -> ConstraintMakerEditable {
|
|
|
+ public func lessThanOrEqualToSuperview(_ file: String = #fileID, _ line: UInt = #line) -> ConstraintMakerEditable {
|
|
|
guard let other = self.description.item.superview else {
|
|
|
fatalError("Expected superview but found nil when attempting make constraint `lessThanOrEqualToSuperview`.")
|
|
|
}
|
|
|
@@ -101,12 +101,12 @@ public class ConstraintMakerRelatable {
|
|
|
}
|
|
|
|
|
|
@discardableResult
|
|
|
- public func greaterThanOrEqualTo(_ other: ConstraintRelatableTarget, _ file: String = #file, line: UInt = #line) -> ConstraintMakerEditable {
|
|
|
+ public func greaterThanOrEqualTo(_ other: ConstraintRelatableTarget, _ file: String = #fileID, line: UInt = #line) -> ConstraintMakerEditable {
|
|
|
return self.relatedTo(other, relation: .greaterThanOrEqual, file: file, line: line)
|
|
|
}
|
|
|
|
|
|
@discardableResult
|
|
|
- public func greaterThanOrEqualToSuperview(_ file: String = #file, line: UInt = #line) -> ConstraintMakerEditable {
|
|
|
+ public func greaterThanOrEqualToSuperview(_ file: String = #fileID, line: UInt = #line) -> ConstraintMakerEditable {
|
|
|
guard let other = self.description.item.superview else {
|
|
|
fatalError("Expected superview but found nil when attempting make constraint `greaterThanOrEqualToSuperview`.")
|
|
|
}
|