emojidataios

emoji-data-ios

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Xcode 10 and Swift 4.2

Installation

emojidataios is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "emojidataios"

How to use it?

For now the functions from this library are quite simple. You can mostly only convert from aliases to unicode, and vice versa
You can also get Emojis depending on their Category

EmojiParser

Since it takes some time to load the Emoji list, you might want to consider calling EmojiParser.prepare() when starting the app. It will load the Emoji list in a background thread, so it is ready when you need it.

Categories

There is 8 different categories, they are available through a enum named EmojiCategory

Symbols

Objects

Nature

People

Foods

Places

Activity

Flags

To get a list of Emojis depending on a category, use EmojiParser#getEmojisForCategory(EmojiCategory)

To unicode

To replace all the aliases found in a string by their unicode, use EmojiParser#parseAliases(String).