Skip to content

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

License

Notifications You must be signed in to change notification settings

safx/Emoji-Swift

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages