Below are not new, but famous tools to achieve screenshot testing on iOS. It helps check view layer.
- https://github.com/mozilla-mobile/MappaMundi
- https://github.com/uber/ios-snapshot-test-case
- https://github.com/pointfreeco/swift-snapshot-testing
We say “snapshot” testing sometimes, but “snapshot” is not only for screenshot comparison check. So, screenshot testing is more proper in this time, I think.
I like swift-snapshot-testing since it has an interesting page, Available-Snapshot-Strategies. It addresses dump the view structure as structure, for example. It is very good to understand snapshot is not only screenshot stuff.
Anyway, this is just a note I remember recently.