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

anton-plebanovich/Emoji-Swift

 
 

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 99.4%
  • Other 0.6%