Unit Test SwiftUI Visually With Snapshot Testing
Daily Coding Tip 060
The SnapshotTesting library provides a lot of easy ways to test UI code without automated UI testing.
It essentially generates screenshots of anything in UIKit, and since we can wrap SwiftUI views in a UIHostingController, SwiftUI as well.
Create a new Xcode SwiftUI project and call it whatever you want, I called mine Test…



