Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
onmyway133 committed Jun 5, 2016
1 parent 30cc223 commit 6c88fcc
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,37 @@ Emoji in Swift

## Features

#### List all emojis

```swift
Smile.list()
```

#### Show standard name of an emoji

```swift
Smile.standardName("🇳🇴") // ["REGIONAL INDICATOR SYMBOL LETTER N", "REGIONAL INDICATOR SYMBOL LETTER O"])
```

#### Search emoji by keywords

```swift
Smile.search(["GRINNING"]) // 😁, 😸
```

#### Search emoji flag by country code

```swift
Smile.flag("no") // 🇳🇴
```

#### Search emoji by alias

Emoji data is from https://github.com/github/gemoji/blob/master/db/emoji.json

```swift
Smile.emoji("japanese_castle" // 🏯
```

## Installation

Expand Down

0 comments on commit 6c88fcc

Please sign in to comment.