EmojiKit is a simple emoji-querying framework in Swift. It is used in Paste, an Emoji Search app in the App Store.
If you’re using Carthage, add EmojiKit to your Cartfile
:
github "dasmer/EmojiKit"
Otherwise, if you're using CocoaPods, add EmojiKit to your Podfile
:
pod 'EmojiKit', '~> 0.0.1'
let fetcher = EmojiFetcher()
2. Use EmojiFetcher's query
function to get an array of Emoji
structs that match the given search string.
fetcher.query("food") { emojiResults in
for emoji in emojiResults {
print("Current Emoji: \(emoji.character) \(emoji.name)")
}
}
The best way to contribute is by submitting a pull request. You can also submit a new Github issue if you find bugs or have questions.
Please make sure to follow the general coding style and add test coverage for new features!