EmojiKit is a Swift SDK that lets you build emoji-based features for all major Apple platforms (iOS, macOS, tvOS, watchOS & visionOS) and SwiftUI.
EmojiKit has all you need to work with emojis, including categories, support for localization & skin tones, unicode & version information, as well as convenient EmojiGrid and EmojiScrollGrid components.
EmojiKit can be installed with the Swift Package Manager:
https://github.com/danielsaidi/EmojiKit.git
EmojiKit provides a bunch of emoji-specific features:
- 😀 Emojis - EmojiKit defines a structured emoji model.
- 🐻 Emoji Categories - EmojiKit defines all standard emoji categories.
- 📦 Emoji Versions - EmojiKit defines all emoji versions and their emojis.
- 🧩 Extensions - EmojiKit extends native types with emoji support.
- 🇸🇪 Localization - EmojiKit supports localizing all emojis and categories.
- 👍🏾 Skin Tones - EmojiKit provides emoji skin tone information.
- 🖼️ Views - EmojiKit has emoji-specific views, like grids and pickers.
See the online documentation for more information.
The Emoji model can be used to parse a bunch of emoji-specific information, for instance:
Emoji("👍").unicodeIdentifier // \\N{THUMBS UP SIGN}
Emoji("🚀").unicodeIdentifier // \\N{ROCKET}
Emoji("👍").unicodeName // Thumbs Up Sign
Emoji("👍🏿").unicodeName // Thumbs Up Sign
Emoji("🚀").unicodeName // Rocket
Emoji("😀").localizedName // Grinning Face
Emoji("😀").localizedName(for: .swedish) // Leende Ansikte
Emoji("👍").hasSkinToneVariants // true
Emoji("🚀").hasSkinToneVariants // false
Emoji("👍🏿").neutralSkinToneVariant // 👍
Emoji("👍").skinToneVariants // 👍👍🏻👍🏼👍🏽👍🏾👍🏿See the online documentation for more information.
The online documentation has more information, articles, code examples, etc.
The Demo folder has an app that lets you explore the library.
You can sponsor me on GitHub Sponsors or reach out for paid support, to help support my open-source projects.
Your support makes it possible for me to put more work into these projects and make them the best they can be.
Feel free to reach out if you have questions or if you want to contribute in any way:
- Website: danielsaidi.com
- Mastodon: @[email protected]
- Twitter: @danielsaidi
- E-mail: [email protected]
EmojiKit is available under the MIT license. See the LICENSE file for more info.