β€οΈ 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
- Support emoji sequences
- Handle skin tones, marks, genders, variation selectors
- Support new iOS emojis
Smile.list()
emojiList
emojiCategories
Smile.isEmoji(character: "π") // true
Smile.containsEmoji(string: "π and π") // true
Smile.countEmoji("π and π") // 2
Smile.countNonEmoji("π and π") // 5
Smile.isSingleEmoji("π and π") // false
Smile.isSingleEmoji("π¨β") // true
Smile.isSingleEmoji("π©π½βπ§β") // false
Smile.isSingleEmoji("just plain text") // false
Smile.isEmojiOnly("π and π") // false
Smile.isEmojiOnly("π¨β") // true
Smile.isEmojiOnly("π©π½βπ§β") // true
Smile.isEmojiOnly("just plain text") // false
XCTAssertEqual(Smile.emoji(unicodeValues: [0x1F47B]), "π»")
XCTAssertEqual(Smile.emoji(unicodeValues: [0x0001F468, 0x200D, 0x2708]), "π¨ββ")
Smile.unmodify(emoji: "π¨πΏ") // π¨
Smile.name(emoji: "π³π΄") // ["REGIONAL INDICATOR SYMBOL LETTER N", "REGIONAL INDICATOR SYMBOL LETTER O"])
Smile.emojis(keywords: ["GRINNING"]) // π, πΈ
Smile.emoji(countryCode: "no") // π³π΄
Emoji data is from https://github.com/github/gemoji/blob/master/db/emoji.json
Smile.emoji(alias: "japanese_castle") // π―
Smile.alias(emoji: "π―") // japanese_castle
Smile.replaceAlias(string: ":santa: is coming to :european_castle:") // π
is coming to π°
Emoji data is from https://github.com/github/gemoji/blob/master/db/Category-Emoji.json
Smile.category(emoji: "π") // people
Smile.extractEmojis(string: "Find πandπ") // ππ
Smile.removeEmojis(string: "Find πandπ") // Find and
Smile.assemble(emojis: ["π¨", "π«") // π¨βπ«
Smile.assemble(emojis: ["π¨", "π©", "π§", "π¦"] // π¨βπ©βπ§βπ¦
Smile.disassemble(emoji: "π¨βπ«") // [π¨, π«]
Update emoji list by running
node parser.js
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"
Khoa Pham, [email protected]
We would love you to contribute to Smile, check the CONTRIBUTING file for more info.
Smile is available under the MIT license. See the LICENSE file for more info.