Last active
March 19, 2018 08:10
-
-
Save lloydsheng/4ebbf17a60302b99d71f21156d1936fd 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
UIGraphicsBeginImageContextWithOptions(snapshotView.bounds.size, true, 0.0) | |
snapshotView.drawHierarchy(in: snapshotView.bounds, afterScreenUpdates: true) | |
let snapshotImage = UIGraphicsGetImageFromCurrentImageContext(); | |
UIGraphicsEndImageContext(); | |
print("\(snapshotImage.debugDescription)") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment