Emoji Model
EmojiKit has an Emoji
struct that lets you work with emojis in structured ways:
let emoji = Emoji("π")
You can use Emoji.all
to get a list of all emojis from all categories, that are available to the currently exeucting runtime:
let emojis = Emoji.all // ππππππ₯Ήπ
ππ€£π₯²...
The Emoji
type also serves as a namespace for most EmojiKit features, which means that most types are wrapped within this struct.
Unicode Information
The Emoji
type has unicode-specific properties that are used for identity and naming:
Emoji("π").unicodeIdentifier // \\N{THUMBS UP SIGN}
Emoji("ππΏ").unicodeIdentifier // \\N{THUMBS UP SIGN}\\N{EMOJI MODIFIER FITZPATRICK TYPE-6}
Emoji("π").unicodeIdentifier // \\N{ROCKET}
Emoji("π").unicodeName // Thumbs Up Sign
Emoji("ππΏ").unicodeName // Thumbs Up Sign
Emoji("π").unicodeName // Rocket
These properties have manual overrides for emojis that lack proper information, such as flags.
Search
The Emoji
type supports searching for emojis that matches certain search queries:
Emoji("π").matches("thumb") // true
Emoji("ππΏ").matches("thumb") // true
Emoji("π").matches("thumb") // true
[Emoji("π"), Emoji("ππΏ") Emoji("π")]
.matching("thumb") // π, ππΏ
This can be used to quickly filter emojis in code or letting users search for specific emojis.
Extensions
EmojiKit has String and Character extensions that can be used to detect and handle emojis:
"Hello!".containsEmoji // false
"Hello! π".containsEmoji // true
"Hello! π".containsOnlyEmojis // false
"π".containsOnlyEmojis // true
"Hello! ππ".emojis // ["π", "π"]
"Hello! ππ".emojiString // "ππ"
"π«Έπ«·".isSingleEmoji // false
"π".isSingleEmoji // true
These extensions are used to power many library features, but can be used stand-alone as well.
Read More
Emojis
EmojiKit lets you work with emojis in a structured way.
Categories
EmojiKit defines all emoji categories and their emojis.
Localization
EmojiKit supports localization for all emojis and locales.
Skin Tones
EmojiKit provides you with skin tone information for all emojis.
Version Information
EmojiKit defines emoji versions, OS availability and their emojis.
UI Components
EmojiKit provides you with UI components like grids & pickers.
Pricing
EmojiKit is free to start using and affordable to scale. It has a monthly and a yearly payment plan.