Swiftpack.co -  Package - safx/Emoji-Swift
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
safx/Emoji-Swift
String extension converting to and from emoji character and Emoji-One
.package(url: "https://github.com/safx/Emoji-Swift.git", from: "0.3.0")

Emoji-Swift

TravisCI 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'

Swift Package Manager

Create a Package.swift file:

import PackageDescription

let package = Package(
    name: "Emoji",
    dependencies: [
        .Package(url: "https://github.com/safx/Emoji-Swift.git", majorVersion: 0)
    ]
)

And then, type swift build.

Manual Install

Just copy Emoji.swift and String+Emoji.swift into your project.

GitHub

link
Stars: 118
Last commit: 2 weeks ago

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