Skip to content

kylefrost/StringEmojize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StringEmojize

####Extension of Swift's String to convert Emoji Cheat Sheet codes into their Unicode equivalent.

Getting Started

Simply add the StringEmojize folder at the root of this repo to your project. Swift doesn't require you to import the files (see below for CocoaPods).

var emojiCodeString = "This string has an Emoji :+1:"
println(emojiCodeString.emojizedString())

If you are installing with CocoaPods, you will need to import

import StringEmojize

Methods

public func emojizedString() -> String
public func emojizedStringWithString(text: String) -> String

Support

StringEmojize has only been tested on Xcode 6.1.1 with iOS 8, however any iOS device supporting Swift should be able to run it (but, that is untested).


License and Credits

License: See LICENSE.

Original idea from diy/NSStringEmojize for converting Objective-C NSString's to Emojis.

About

Extension of Swift's String to convert Emoji Cheat Sheet codes into their Unicode equivalent.

Resources

License

Stars

Watchers

Forks

Packages

No packages published