Skip to content

๐Ÿš— Swift 3 emoji parser for String, NSAttributedString and NSMutableAttributedString

License

Notifications You must be signed in to change notification settings

oleander/Emojize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

16 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Emojize Status

Swift 3 emoji parser for String, NSAttributedString and NSMutableAttributedString. It replaces sub strings on the form ":emoji:" with its corresponding emoji character. The emoji lookup table is taken from github/gemoji.

Usage

import Emojize

let string = "This is a :car:"
string.emojified // => "This is a ๐Ÿš—"
NSMutableAttributedString(string: string).emojified.string // => "This is a ๐Ÿš—"
NSAttributedString(string: string).emojified.string // => "This is a ๐Ÿš—"

Install

Add pod 'Emojize' to your Podfile and run pod install.

About

๐Ÿš— Swift 3 emoji parser for String, NSAttributedString and NSMutableAttributedString

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published