A category on NSString to convert Emoji Cheat Sheet codes to their equivalent Unicode characters

Related tags

Text NSStringEmojize
Overview

NSString+Emojize

A category on NSString to turn codes from Emoji Cheat Sheet into Unicode emoji characters.

Getting Started

In order to use NSString+Emojize, you'll want to add the entirety of the NSString+Emojize directory to your project. To get started, simply:

#import "NSString+Emojize.h"
NSString *emojiString = @"This comment has an emoji :mushroom:";
NSLog(@"%@", [emojiString emojizedString]);

Methods

- (NSString *)emojizedString;
+ (NSString *)emojizedStringWithString:(NSString *)aString;

iOS Support

NSString+Emojize is tested on iOS 5 and up. Older versions of iOS may work but are not currently supported.

ARC

NSString+Emojize uses ARC. If you are including NSString+Emojize in a project that does not use Automatic Reference Counting (ARC), you will need to set the -fobjc-arc compiler flag on all of the NSString+Emojize source files. To do this in Xcode, go to your active target and select the "Build Phases" tab. Now select all NSString+Emojize source files, press Enter, insert -fobjc-arc and then "Done" to enable ARC for NSString+Emojize.

You might also like...
A set of libraries to help users find and replace native system emojis with EmojiOne in their app or website.
A set of libraries to help users find and replace native system emojis with EmojiOne in their app or website.

This repository is now maintained as JoyPixels/emoji-toolkit. You'll find the latest version of our resources at emoji-toolkit. Please see the UPGRADE

A simple library that provides standard Unicode emoji support across all platforms

Twitter Emoji (Twemoji) A simple library that provides standard Unicode emoji support across all platforms. Twemoji v13.1 adheres to the Unicode 13.0

Swiftly convert country codes and cultural terms to all 269 emoji flags without hassle
Swiftly convert country codes and cultural terms to all 269 emoji flags without hassle

Swiftly convert country codes and cultural terms to all 269 emoji flags without hassle

UI Testing Cheat Sheet and Examples.

UI Testing Cheat Sheet This repository is complementary code for my post, UI Testing Cheat Sheet and Examples. The post goes into more detail with exa

A quick reference cheat sheet for common, high level topics in Swift.

Swift 3+ Cheat Sheet Want to help improve this? File an issue or open a pull request! :) This is not meant to be a beginner's guide or a detailed disc

A quick reference cheat sheet for common, high level topics in Objective-C.

Objective-C Cheat Sheet This is not meant to be a beginner's guide or a detailed discussion about Objective-C; it is meant to be a quick reference to

SwiftUI 2.0 Cheat Sheet
SwiftUI 2.0 Cheat Sheet

SwiftUI 2.0 Cheat Sheet Table of Contents SwiftUI Cheat Sheet Table of Contents Resource UIKit equivalent in SwiftUI View Text Label TextEditor Image

A customisable view for entering arbitrary length pins, codes or passwords in iOS. Supports iOS 12 one time codes.
A customisable view for entering arbitrary length pins, codes or passwords in iOS. Supports iOS 12 one time codes.

CBPinEntryView CBPinEntryView is a view written in Swift to allow easy and slick entry of pins, codes or passwords. It allows backspacing, dismissal o

CHIOTPField is a set of textfields that can be used for One-time passwords, SMS codes, PIN codes, etc. Mady by @ChiliLabs - https://chililabs.io
CHIOTPField is a set of textfields that can be used for One-time passwords, SMS codes, PIN codes, etc. Mady by @ChiliLabs - https://chililabs.io

CHIOTPField CHIOTPField is a set of textfields that can be used for One-time passwords, SMS codes, PIN codes, etc. All fields support insertion of one

NSString+FontAwesome

FontAwesome+iOS Font awesome is an iconic font. Read more about it on http://fortawesome.github.com/Font-Awesome/ This category brings this great icon

A simple swift package that provides a Swift Concurrency equivalent to `@Published`.

AsyncValue This is a simple package that provides a convenience property wrapper around AsyncStream that behaves almost identically to @Published. Ins

Convert Countries, Country Codes, Continents,... with a single line of code.
Convert Countries, Country Codes, Continents,... with a single line of code.

iOS · macOS · watchOS · tvOS A pure Swift library that allows you to easily convert Countries to Country Codes and Country Codes to Countries. There i

A μlibrary in Swift containing all the countries with their localized name, ISO code, phone code, country code, flag image and emoji.

CountryKit CountryKit A μlibrary in Swift containing all the countries with their localized name, ISO code, phone code, country code, flag image and e

A Simple iOS QR code scanner that allows users to enable their camera and local Photo Library accesses to scan the contents of the input QR codes.

iOS QR Code Scanner A Simple iOS QR code scanner using Swift UI. Jump to: ContentView.swift screenshot 1.1.5 NOTE: be aware of the new horizontal line

SwiftUI package to present a Bottom Sheet interactable view with the desired Detents. Also known as Half sheet.
SwiftUI package to present a Bottom Sheet interactable view with the desired Detents. Also known as Half sheet.

BottomSheetSUI BottomSheetSUI is a package that gives you the ability to show a Bottom sheet intractable, where you can add your own SwiftUI view. You

Custom-action-sheet- - Custom action sheet with swift

Custom-action-sheet- Usage let alertController: UIAlertControllerDimmed = UIAler

iOS On-Device Game Cheat Creation/Sharing Platform and Software

CheatManager CheatManager is a mobile platform, used for installation/distribution/creation of mobile game cheats/hacks. This platform is completely d

an iOS cheat engine for JavaScript APIs & Html5 UI
an iOS cheat engine for JavaScript APIs & Html5 UI

H5GG an iOS cheat engine for JavaScript APIs & Html5 UI. provide memory apis likely (Android)GameGuardian's Lua APIs. support load scripts(*.js or *.h

Swift interview preparation, with questions and answers, cheat sheets, examples...

Swift-Interview Hello every one, in this repo I'm preparing for my swift thecnical question, so you'll find examples and frequently asked questions ab

Comments
  • Enhancements

    Enhancements

    I extended the list of emojis to include all the emojis that are available on the cheat sheet. Following that I did two optimizations that are explained in detail in the separate commits.

    Enjoy :cake:

    opened by dennisreimann 2
  • Updated - Unicode List?

    Updated - Unicode List?

    The Thumbsup isnt showing up for me. Is there a way we can update our unicode list? If there has been an update that is.

    Thanks for the help! I really do like NSStringEmojize.

    opened by vnchopra 0
  • Several emojis show up as black and white variants

    Several emojis show up as black and white variants

    The ones I've identified so far is :sunny:, :cloud: and :snowflake:. All 3 needs a unicode variant selector \U0000FE0F. I tested 30-ish emojis and haven't found any that fails with the variant selector yet.

    Would you accept a PR that adds \U0000FE0F to either those specifically or to all emojis?

    opened by vogonistic 0
  • add naïve reverse mapped dictionary of aliases

    add naïve reverse mapped dictionary of aliases

    The reversed dictionary is generated at runtime to avoid maintaining two distinct source lists. Duplicate emoji are trimmed through the use of NSSet and each is paired to a code by selecting the first result of -[NSDictionary allKeysForObject:]. It is important to note that the keys are not ordered and grouped sequentially as defined in EMOJI_HASH and in turn, will result in :-1: paired to :-1: and not :+1: paired to :thumbsup: but instead :thumbsup:.

    opened by pizthewiz 0
Owner
DIY.org
DIY.org
Croc is a swift emoji string parsing library

Croc is a library for parsing emojis on iOS. It provides a simple and lightweight interface for detecting, generating, categorizing and managing emoji characters, making emoji-powered features an easy task for developers.

Joe Kalash 127 Nov 20, 2022
A searchable emoji dropdown view.

NBEmojiSearchView Integrate a searchable emoji dropdown into your iOS app in just a few lines. To start searching, the user just types a :. Then, the

Neeraj Baid 85 Dec 23, 2022
Effortless emoji-querying in Swift

EmojiKit EmojiKit is a simple emoji-querying framework in Swift. It is used in Paste, an Emoji Search app in the App Store. Installation If you’re usi

Dasmer Singh 93 Nov 12, 2022
Emoji in Swift

Smile ❤️ Support my apps ❤️ Push Hero - pure Swift native macOS application to test push notifications PastePal - Pasteboard, note and shortcut manage

Khoa 478 Dec 30, 2022
A Swift framework for using custom emoji in strings.

Emojica – a Swift framework for using custom emoji in strings. What does it do? Emojica allows you to replace the standard emoji in your iOS apps with

Dan 101 Nov 7, 2022
Swift emoji string parsing library

Croc is a library for parsing emojis on iOS. It provides a simple and lightweight interface for detecting, generating, categorizing and managing emoji

Joe Kalash 125 Sep 27, 2021
A validator for postal codes with support for 200+ regions

PostalCodeValidator A validator for postal codes with support for 200+ regions. import Foundation import PostalCodeValidator if let validator = Posta

FormatterKit 211 Jun 17, 2022
The world's largest independent emoji font.

The world's largest independent emoji font.

JoyPixels Inc. 337 Dec 24, 2022
Convert text with HTML tags, links, hashtags, mentions into NSAttributedString. Make them clickable with UILabel drop-in replacement.

Atributika is an easy and painless way to build NSAttributedString. It is able to detect HTML-like tags, links, phone numbers, hashtags, any regex or

Pavel Sharanda 1.1k Jan 8, 2023
🌍⏩📄 Convert ISO8859 1-16 Encoded Text to String in Swift. Supports iOS, tvOS, watchOS and macOS.

ISO8859 Convert ISO8859 1-16 Encoded Text to String in Swift. Usage let encoding = ISO8859.part1 let string = String([...], iso8859Encoding: encoding)

Devran Cosmo Uenal 18 Jan 2, 2023