Swiftpack.co - safx/Emoji-Swift as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by safx.
safx/Emoji-Swift 0.3.0
String extension converting to and from emoji character and Emoji-One
⭐️ 126
πŸ•“ 4 weeks ago
.package(url: "https://github.com/safx/Emoji-Swift.git", from: "0.3.0")

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

GitHub

link
Stars: 126
Last commit: 4 weeks ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics