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.

    Author

    Daniel Loewenherz

    Date

    February 17, 2016

    Declaration

    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.