UIWindow
public extension UIWindow
Helper methods for UIWindow
.
-
Take a screenshot and save to the specified file path. Helpful for creating screenshots via automated tests.
Copyright
©2016 Lionheart Software LLCDate
February 17, 2016Declaration
Swift
class func takeScreenshotAndSaveToPath(_ path: String) -> Bool
Parameters
path
The path on the local filesystem to save the screenshot to.
Return Value
A bool indicating whether the save was successful.