Skip to content

DagAgren/EmojiAliases

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EmojiAliases

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 😍.

Installation

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.

Usage

let string = ":dragon_face:"
let converted = string.replacingEmojiAliases
print(converted)

Data source

The emoji code data comes from the EmojiOne project:

https://github.com/emojione/emojione/tree/master/extras/alpha-codes

Author

Dag Ågren ([email protected], @WAHa_06x36, @[email protected], wakaba.c3.cx)

License

This code is released into the public domain with no warranties. If that is not suitable, it is also available under the CC0 license.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published