Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
justinkumpe authored Oct 21, 2020
1 parent fbe4b34 commit ee8de5a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,18 @@ emojiCategories
#### Check if a character is emoji

```swift
Smile.isEmoji(character: "πŸŽ‰") // true
Smile.isEmoji(emojiRule: .containsOnlyEmoji, string: "hello πŸ‘‹") // false
Smile.isEmoji(emojiRule: .containsOnlyEmoji, string: "πŸ‘‹") // true

Smile.isEmoji(emojiRule: .isSingleEmoji, string: "πŸ‘πŸ‘Ž") // false
Smile.isEmoji(emojiRule: .isSingleEmoji, string: "πŸ‘") // true
```

#### Check if a string contains any emoji

```swift
Smile.containsEmoji(string: "🎈 and 🎁") // true
Smile.isEmoji(emojiRule: .containsEmoji, string: "hello") // false
Smile.isEmoji(emojiRule: .containsEmoji, string: "hello πŸ‘‹") // true
```

#### Get emoji from unicode values
Expand Down

0 comments on commit ee8de5a

Please sign in to comment.