This is an extension for the String class in Swift to convert emoji alias codes,
such as :heart_eyes:
into an Unicode emoji characters, such as 😍.
Just download and copy EmojiAlias.swift into your project. It's just a single file.
The other files in this repo are just utilities to build the list of emoji from a JSON file.
let string = ":dragon_face:"
let converted = string.replacingEmojiAliases
print(converted)
The emoji code data comes from the EmojiOne project:
https://github.com/emojione/emojione/tree/master/extras/alpha-codes
Dag Ågren (paracelsus@gmail.com, @WAHa_06x36, @WAHa_06x36@mastodon.social, wakaba.c3.cx)
This code is released into the public domain with no warranties. If that is not suitable, it is also available under the CC0 license.