Skip to content

Commit

Permalink
Adding Nimble.Expression to correct xcode 16 beta issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Bobby McBride committed Jul 9, 2024
1 parent b451df0 commit cb90f26
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Nimble_Snapshots/DynamicSize/DynamicSizeSnapshot.swift
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ func performDynamicSizeSnapshotTest<T: Snapshotable>(_ name: String?,
sizes: [String: CGSize],
isDeviceAgnostic: Bool = false,
usesDrawRect: Bool = false,
actualExpression: Expression<T>,
actualExpression: Nimble.Expression<T>,
tolerance: CGFloat? = nil,
pixelTolerance: CGFloat? = nil,
isRecord: Bool,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public func recordDynamicTypeSnapshot<T: Snapshotable>(named name: String? = nil
}
}

private func updateTraitCollection<T: Snapshotable>(on expression: Expression<T>) {
private func updateTraitCollection<T: Snapshotable>(on expression: Nimble.Expression<T>) {
// swiftlint:disable:next force_try force_unwrapping
let instance = try! expression.evaluate()!
updateTraitCollection(on: instance)
Expand Down
4 changes: 2 additions & 2 deletions Nimble_Snapshots/HaveValidSnapshot.swift
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ private func performSnapshotTest<T: Snapshotable>(_ name: String?,
identifier: String? = nil,
isDeviceAgnostic: Bool = false,
usesDrawRect: Bool = false,
actualExpression: Expression<T>,
actualExpression: Nimble.Expression<T>,
pixelTolerance: CGFloat? = nil,
tolerance: CGFloat?,
shouldIgnoreScale: Bool) -> MatcherResult {
Expand Down Expand Up @@ -234,7 +234,7 @@ private func recordSnapshot<T: Snapshotable>(_ name: String?,
identifier: String? = nil,
isDeviceAgnostic: Bool = false,
usesDrawRect: Bool = false,
actualExpression: Expression<T>,
actualExpression: Nimble.Expression<T>,
shouldIgnoreScale: Bool) -> MatcherResult {
// swiftlint:disable:next force_try force_unwrapping
let instance = try! actualExpression.evaluate()!
Expand Down

0 comments on commit cb90f26

Please sign in to comment.