Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leoiphonedev/7056d784b2cb6c9462543449a81b3be2 to your computer and use it in GitHub Desktop.
Save leoiphonedev/7056d784b2cb6c9462543449a81b3be2 to your computer and use it in GitHub Desktop.
Decode base64 string to UIImafe in swift4
func getImageFromBase64(base64:String) -> UIImage {
let data = Data(base64Encoded: base64)
return UIImage(data: data!)!
}
@LeydidianaOD
Copy link

decode base64 string to pdf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment