UIWindow capture() Returns a screenshot of the current window Declaration Swift public func capture() -> UIImage? View Source on GitHub