Skip to content

Latest commit

 

History

History
46 lines (33 loc) · 1.25 KB

README.md

File metadata and controls

46 lines (33 loc) · 1.25 KB

Emoji-Swift

codecov.io Platform License Version Carthage Swift Package Manager

String extension converting to and from emoji character and Emoji Cheat Sheet string.

Example Usage

import Emoji

":heart_eyes: :heart: :beer:".emojiUnescapedString
"🐶🐱🐷".emojiEscapedString

Methods

extension String {
    var emojiEscapedString: String
    var emojiUnescapedString: String
}

Install

CocoaPods

pod 'Emoji-swift'

How to update emoji

cd tools
curl -LO  https://raw.githubusercontent.com/joypixels/emoji-toolkit/master/emoji.json
python ./gen-emoji-swift.py > ../Sources/Emoji/Emoji.swift