Created
March 14, 2018 07:02
-
-
Save luismachado/1f360e31e62e4223bbd3506d4de9b72b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
override func setUp() { | |
super.setUp() | |
let storyboard = UIStoryboard(name: "Main", bundle: Bundle.main) | |
// swiftlint:disable:next force_cast | |
viewController = storyboard.instantiateViewController(withIdentifier: "ViewController") as! ViewController | |
UIApplication.shared.keyWindow!.rootViewController = viewController | |
_ = viewController.view | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment