Smile alternatives and similar libraries
Based on the "Text" category.
Alternatively, view Smile alternatives based on common mentions on social networks and blogs.
-
PhoneNumberKit
A Swift framework for parsing, formatting and validating international phone numbers. Inspired by Google's libphonenumber. -
ZSSRichTextEditor
A beautiful rich text WYSIWYG editor for iOS with a syntax highlighted source view -
Twitter Text Obj
Twitter Text Libraries. This code is used at Twitter to tokenize and parse text to meet the expectations for what can be used on the platform. -
FontAwesomeKit
Icon font library for iOS. Currently supports Font-Awesome, Foundation icons, Zocial, and ionicons. -
TwitterTextEditor
A standalone, flexible API that provides a full-featured rich text editor for iOS applications. -
RichEditorView
DISCONTINUED. RichEditorView is a simple, modular, drop-in UIView subclass for Rich Text Editing. -
SwiftyMarkdown
Converts Markdown files and strings into NSAttributedStrings with lots of customisation options. -
Atributika
Convert text with HTML tags, links, hashtags, mentions into NSAttributedString. Make them clickable with UILabel drop-in replacement. -
SwiftIconFont
Icons fonts for iOS (Font Awesome 5, Iconic, Ionicon, Octicon, Themify, MapIcon, MaterialIcon, Foundation 3, Elegant Icon, Captain Icon) -
NSStringEmojize
A category on NSString to convert Emoji Cheat Sheet codes to their equivalent Unicode characters -
Mustard
π Mustard is a Swift library for tokenizing strings when splitting by whitespace doesn't cut it. -
Heimdall
Heimdall is a wrapper around the Security framework for simple encryption/decryption operations. -
AttributedTextView
Easiest way to create an attributed UITextView (with support for multiple links and from html)
CodeRabbit: AI Code Reviews for Developers
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of Smile or a related project?
README
Smile
β€οΈ Support my apps β€οΈ
- Push Hero - pure Swift native macOS application to test push notifications
- PastePal - Pasteboard, note and shortcut manager
- Quick Check - smart todo manager
- Alias - App and file shortcut manager
- My other apps
β€οΈβ€οΈπππ€β€οΈβ€οΈ
Emoji in Swift. For reference, go to https://github.com/onmyway133/emoji
[](Screenshots/Banner.png)
Features
- [x] Support emoji sequences
- [x] Handle skin tones, marks, genders, variation selectors
- [x] Support new iOS emojis
List
List all emojis
Smile.list()
emojiList
emojiCategories
Emoji
Check if a character is emoji
Smile.isEmoji(character: "π") // true
Check if a string contains any emoji
Smile.containsEmoji(string: "π and π") // true
Count number of emoji characters in a string
Smile.countEmoji("π and π") // 2
Count number of non-emoji characters in a string
Smile.countNonEmoji("π and π") // 5
Check if a string contains only a single emoji
Smile.isSingleEmoji("π and π") // false
Smile.isSingleEmoji("π¨β") // true
Smile.isSingleEmoji("π©π½βπ§β") // false
Smile.isSingleEmoji("just plain text") // false
Check if a string contains only emojis
Smile.isEmojiOnly("π and π") // false
Smile.isEmojiOnly("π¨β") // true
Smile.isEmojiOnly("π©π½βπ§β") // true
Smile.isEmojiOnly("just plain text") // false
Get emoji from unicode values
XCTAssertEqual(Smile.emoji(unicodeValues: [0x1F47B]), "π»")
XCTAssertEqual(Smile.emoji(unicodeValues: [0x0001F468, 0x200D, 0x2708]), "π¨ββ")
Unmodify an emoji
Smile.unmodify(emoji: "π¨πΏ") // π¨
Name
Show standard name of an emoji
Smile.name(emoji: "π³π΄") // ["REGIONAL INDICATOR SYMBOL LETTER N", "REGIONAL INDICATOR SYMBOL LETTER O"])
Search emoji by keywords
Smile.emojis(keywords: ["GRINNING"]) // π, πΈ
Flag
Search emoji flag by country code
Smile.emoji(countryCode: "no") // π³π΄
Alias
Search emoji by alias
Emoji data is from https://github.com/github/gemoji/blob/master/db/emoji.json
Smile.emoji(alias: "japanese_castle") // π―
Find alias by emoji
Smile.alias(emoji: "π―") // japanese_castle
Replace alias within a string
Smile.replaceAlias(string: ":santa: is coming to :european_castle:") // π
is coming to π°
Category
Find category of emoji
Emoji data is from https://github.com/github/gemoji/blob/master/db/Category-Emoji.json
Smile.category(emoji: "π") // people
Manipulation
Extract all emojis within a string
Smile.extractEmojis(string: "Find πandπ") // ππ
Remove all emojis within a string
Smile.removeEmojis(string: "Find πandπ") // Find and
Assemble
Smile.assemble(emojis: ["π¨", "π«") // π¨βπ«
Smile.assemble(emojis: ["π¨", "π©", "π§", "π¦"] // π¨βπ©βπ§βπ¦
Disassemble
Smile.disassemble(emoji: "π¨βπ«") // [π¨, π«]
Script
Update emoji list by running
node parser.js
Installation
Smile is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'Smile'
Smile is also available through Carthage. To install just write into your Cartfile:
github "onmyway133/Smile"
Author
Khoa Pham, [email protected]
Contributing
We would love you to contribute to Smile, check the CONTRIBUTING file for more info.
License
Smile is available under the MIT license. See the LICENSE file for more info.
*Note that all licence references and agreements mentioned in the Smile README section above
are relevant to that project's source code only.