Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dasmer/EmojiKit
Effortless emoji-querying in Swift
https://github.com/dasmer/EmojiKit
Last synced: 6 days ago
JSON representation
Effortless emoji-querying in Swift
- Host: GitHub
- URL: https://github.com/dasmer/EmojiKit
- Owner: dasmer
- License: mit
- Created: 2015-12-30T16:39:34.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2019-07-02T15:28:59.000Z (over 5 years ago)
- Last Synced: 2024-11-12T01:55:41.115Z (about 1 month ago)
- Language: Swift
- Homepage:
- Size: 38.1 KB
- Stars: 94
- Watchers: 5
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ios-star - EmojiKit - Effortless emoji-querying in Swift. (Text / Other Testing)
- awesome-ios - EmojiKit - Effortless emoji-querying in Swift. (Text / Other Testing)
README
# EmojiKit
EmojiKit is a simple emoji-querying framework in Swift. It is used in [Paste](https://github.com/dasmer/Paste), an Emoji Search app in the [App Store](https://itunes.apple.com/us/app/paste-emoji-search/id1070640289).Installation
------------
If you’re using [Carthage](http://github.com/Carthage/Carthage), add EmojiKit to your `Cartfile`:```swift
github "dasmer/EmojiKit"
```Otherwise, if you're using [CocoaPods](http://cocoapods.org), add EmojiKit to your `Podfile`:
```ruby
pod 'EmojiKit', '~> 0.0.1'
```Usage
-----
##### 1. Create an EmojiFetcher instance variable.```swift
let fetcher = EmojiFetcher()
```##### 2. Use EmojiFetcher's `query` function to get an array of `Emoji` structs that match the given search string.
```swift
fetcher.query("food") { emojiResults in
for emoji in emojiResults {
print("Current Emoji: \(emoji.character) \(emoji.name)")
}
}
```Contributing
------------The best way to contribute is by submitting a pull request. You can also submit a [new Github issue](https://github.com/dasmer/EmojiKit/issues/new) if you find bugs or have questions. :octocat:
Please make sure to follow the general coding style and add test coverage for new features!