safx / Emoji-Swift

String extension converting to and from emoji character and Emoji-One

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

String extension converting to and from emoji character and Emoji-One

License:MIT License


Languages

Language:Swift 99.5%Language:Python 0.3%Language:Ruby 0.1%Language:Objective-C 0.1%