Skip to content

carabina/emojimap

Repository files navigation

Emoji Map 😎

Map Strings to emojis

Swift Version License Platform PRs Welcome

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.

👩‍🚀 Features

  • Transform String into an Emoji
  • Get several Emoji matches for each word
  • Input paragraphs and get an array of Emojis

👩‍🎓 Requirements

  • iOS 10.0+
  • Xcode 9+

🔧 Installation

CocoaPods

You can use CocoaPods to install EmojiMap by adding it to your Podfile:

platform :ios, '10.0'
use_frameworks!
pod 'Emojimap'

Manually

  1. Download and drop EmojiMap.swift in your project.
  2. Download and drop emojis-es.json, emojis-en.json, emojis-fr.json, emojis-de.json in your project.
  3. Congratulations!

🚀 Usage example

import Emojimap

let mapping = EmojiMap()
for match in mapping.getMatchesFor("Dog Elephant Apple") {
    print(match.emoji)
}

// "🐶 🐾 🐩 🐘 🍎 📱"

🤗 Contribute

We would love you to contribute to EmojiMap, check the LICENSE file for more info.

🙌 Credits

Emoji keyword library is based on emojilib.

📞 Meta

Matias Villaverde – @matiasverdeecontact@matiasvillaverde.com

Distributed under the MIT license. See LICENSE for more information.

https://github.com/matiasvillaverde/emojimap

About

Map Strings to Emojis using Swift 4

Resources

License

Stars

Watchers

Forks

Packages

No packages published