Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
let expr = "sexy gaze"
let jsonEncoder = JSONEncoder()
jsonEncoder.outputFormatting = .prettyPrinted
var animoji = Animoji.iPhoneX("💩", expr.data(using: .utf8)!)
var data = try jsonEncoder.encode(animoji)
var json = String(data: data, encoding: .utf8)!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment