Created
February 23, 2018 15:21
-
-
Save leoiphonedev/7056d784b2cb6c9462543449a81b3be2 to your computer and use it in GitHub Desktop.
Decode base64 string to UIImafe in swift4
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
func getImageFromBase64(base64:String) -> UIImage { | |
let data = Data(base64Encoded: base64) | |
return UIImage(data: data!)! | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
decode base64 string to pdf