Skip to content

Commit

Permalink
precision
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian Sergheev committed Jan 10, 2024
1 parent 23566e9 commit 4519df8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Sources/DemoKitSnapshot/XCTestCase+Extensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ extension XCTestCase {
line: UInt
) {
UIView.setAnimationsEnabled(false)
let perceptualPrecision: Float = 0.95
let precision: Float = 0.95
let perceptualPrecision: Float = 0.98
let userInterfaceStyle: [UIUserInterfaceStyle] = [.light, .dark]

userInterfaceStyle.forEach { userInterfaceStyle in
Expand All @@ -165,6 +166,7 @@ extension XCTestCase {
matching: viewController,
as: .image(
on: device.imageConfig,
precision: precision,
perceptualPrecision: perceptualPrecision,
traits: traits
),
Expand Down

0 comments on commit 4519df8

Please sign in to comment.