Map Strings to emojis
Emoji Map is a lightweight library to map Strings to Emojis, similar to the prediction of iOS Keyboard. Currently working for English, Spanish, German and French.
- Transform String into an Emoji
- Get several Emoji matches for each word
- Input paragraphs and get an array of Emojis
- iOS 10.0+
- Xcode 9+
You can use CocoaPods to install EmojiMap
by adding it to your Podfile
:
platform :ios, '10.0'
use_frameworks!
pod 'Emojimap'
- Download and drop
EmojiMap.swift
in your project. - Download and drop
emojis-es.json
,emojis-en.json
,emojis-fr.json
,emojis-de.json
in your project. - Congratulations!
import Emojimap
let mapping = EmojiMap()
for match in mapping.getMatchesFor("Dog Elephant Apple") {
print(match.emoji)
}
// "🐶 🐾 🐩 🐘 🍎 📱"
We would love you to contribute to EmojiMap, check the LICENSE
file for more info.
Emoji keyword library is based on emojilib.
Matias Villaverde – @matiasverdee – contact@matiasvillaverde.com
Distributed under the MIT license. See LICENSE
for more information.