Some things I have found on the internet to help with my work.
Record the view and test against it.
https://github.com/pointfreeco/swift-snapshot-testing
https://www.youtube.com/watch?v=DqW2cb6JLRQ