A test case created by the engineers at Facebook for testing UI code. FBSnapshotTestCase takes a configured UIView or CALayer and uses the renderInContext: method to get an image snapshot of its contents. It compares this snapshot to a reference image stored in your source code repository and fails the test if the two images don’t match. A descriptive error message is printed to the console on failure along with a one-line command to see an image diff if you have Kaleidoscope installed.
To celebrate one of the most exciting WWDC events in recent memory, raywenderlich.com is excited to announce three brand new iOS books: SwiftUI by Tutorials, Combine: Asynchronous Programming with Swift, and Catalyst by Tutorials.
Learn how to build fluid and engaging declarative UI for your apps — using less code — with SwiftUI, how to master native asynchronous programming with Swift using the Combine framework and how to run iOS apps natively on macOS with Catalyst!
Our three new advanced iOS books are currently on sale and, when you get all three, you can save over 40% with our iOS Summer Bundle! It’s only available for a limited time, so be sure to take advantage of it before it’s gone.