Swiftui

2026


Snapshot precision 0.99 let a wrong text line pass all seven screen tests

A SwiftUI screen suite recorded with swift-snapshot-testing at precision: 0.99 stayed green after the row's location text was deliberately wired to the wrong value. On a full device frame, 1% of the pixels is about 30,000, and the wrong text changed about 900. Measuring the mutation and setting precision to 0.9999 turned four of the seven cases red.
·4 mins