Skip to content

Instantly share code, notes, and snippets.

@pstasiak
Created June 12, 2017 13:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pstasiak/3fc5d475cede7a3a8ac5ac438c2f2216 to your computer and use it in GitHub Desktop.
Save pstasiak/3fc5d475cede7a3a8ac5ac438c2f2216 to your computer and use it in GitHub Desktop.
func testExample() {
recordMode = true
let window = UIWindow()
window.makeKeyAndVisible()
window.rootViewController = ExampleViewController(nibName: nil, bundle: nil)
verifyViewSnaps([DeviceRack.iPhone.screen4_0], view: window) //Taking snapshot
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment