{"id":2026,"url":"https://github.com/onmyway133/Smile","last_synced_at":"2025-08-02T05:33:31.227Z","repository":{"id":8995925,"uuid":"60483485","full_name":"onmyway133/Smile","owner":"onmyway133","description":":smile: Emoji in Swift","archived":false,"fork":false,"pushed_at":"2021-11-29T19:44:39.000Z","size":523,"stargazers_count":525,"open_issues_count":8,"forks_count":47,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-07-01T11:53:08.998Z","etag":null,"topics":["alias","category","emoji","ios","name","scalar","sequence","swift","unicode"],"latest_commit_sha":null,"homepage":"https://onmyway133.com/apps/","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/onmyway133.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-06-05T22:07:33.000Z","updated_at":"2025-04-28T22:31:25.000Z","dependencies_parsed_at":"2022-08-07T05:00:24.258Z","dependency_job_id":null,"html_url":"https://github.com/onmyway133/Smile","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/onmyway133/Smile","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onmyway133%2FSmile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onmyway133%2FSmile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onmyway133%2FSmile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onmyway133%2FSmile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/onmyway133","download_url":"https://codeload.github.com/onmyway133/Smile/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onmyway133%2FSmile/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268339405,"owners_count":24234544,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["alias","category","emoji","ios","name","scalar","sequence","swift","unicode"],"created_at":"2024-01-05T20:16:01.564Z","updated_at":"2025-08-02T05:33:30.902Z","avatar_url":"https://github.com/onmyway133.png","language":"Swift","funding_links":[],"categories":["Swift","UI","Text"],"sub_categories":["Layout","Other free courses","Other Testing","Keychain"],"readme":"# Smile\n\n❤️ Support my apps ❤️ \n\n- [Push Hero - pure Swift native macOS application to test push notifications](https://onmyway133.com/pushhero)\n- [PastePal - Pasteboard, note and shortcut manager](https://onmyway133.com/pastepal)\n- [Quick Check - smart todo manager](https://onmyway133.com/quickcheck)\n- [Alias - App and file shortcut manager](https://onmyway133.com/alias)\n- [My other apps](https://onmyway133.com/apps/)\n\n❤️❤️😇😍🤘❤️❤️\n\nEmoji in Swift. For reference, go to https://github.com/onmyway133/emoji\n\n[![CI Status](http://img.shields.io/travis/onmyway133/Smile.svg?style=flat)](https://travis-ci.org/onmyway133/Smile)\n[![Version](https://img.shields.io/cocoapods/v/Smile.svg?style=flat)](http://cocoadocs.org/docsets/Smile)\n[![Carthage Compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n[![License](https://img.shields.io/cocoapods/l/Smile.svg?style=flat)](http://cocoadocs.org/docsets/Smile)\n[![Platform](https://img.shields.io/cocoapods/p/Smile.svg?style=flat)](http://cocoadocs.org/docsets/Smile)\n![Swift](https://img.shields.io/badge/%20in-swift%204.0-orange.svg)\n\n![](Screenshots/Banner.png)\n\n## Features\n\n- [x] Support emoji sequences\n- [x] Handle skin tones, marks, genders, variation selectors\n- [x] Support new iOS emojis\n\n### List\n\n#### List all emojis\n\n```swift\nSmile.list()\nemojiList\nemojiCategories\n```\n\n### Emoji\n\n#### Check if a character is emoji\n\n```swift\nSmile.isEmoji(character: \"🎉\") // true\n```\n\n#### Check if a string contains any emoji\n\n```swift\nSmile.containsEmoji(string: \"🎈 and 🎁\") // true\n```\n\n#### Count number of emoji characters in a string\n\n```swift\nSmile.countEmoji(\"🎈 and 🎁\") // 2\n```\n\n#### Count number of non-emoji characters in a string\n\n```swift\nSmile.countNonEmoji(\"🎈 and 🎁\") // 5\n```\n\n#### Check if a string contains only a single emoji\n\n```swift\nSmile.isSingleEmoji(\"🎈 and 🎁\") // false\nSmile.isSingleEmoji(\"👨‍\") // true\nSmile.isSingleEmoji(\"👩🏽‍🧑‍\") // false\nSmile.isSingleEmoji(\"just plain text\") // false\n```\n\n#### Check if a string contains only emojis\n\n```swift\nSmile.isEmojiOnly(\"🎈 and 🎁\") // false\nSmile.isEmojiOnly(\"👨‍\") // true\nSmile.isEmojiOnly(\"👩🏽‍🧑‍\") // true\nSmile.isEmojiOnly(\"just plain text\") // false\n```\n\n#### Get emoji from unicode values\n\n```swift\nXCTAssertEqual(Smile.emoji(unicodeValues: [0x1F47B]), \"👻\")\nXCTAssertEqual(Smile.emoji(unicodeValues: [0x0001F468, 0x200D, 0x2708]), \"👨‍✈\")\n```\n\n#### Unmodify an emoji\n\n```swift\nSmile.unmodify(emoji: \"👨🏿\") // 👨\n```\n\n### Name\n\n#### Show standard name of an emoji\n\n```swift\nSmile.name(emoji: \"🇳🇴\") // [\"REGIONAL INDICATOR SYMBOL LETTER N\", \"REGIONAL INDICATOR SYMBOL LETTER O\"])\n```\n\n#### Search emoji by keywords\n\n```swift\nSmile.emojis(keywords: [\"GRINNING\"]) // 😁, 😸\n```\n\n### Flag\n\n#### Search emoji flag by country code\n\n```swift\nSmile.emoji(countryCode: \"no\") // 🇳🇴\n```\n\n### Alias\n\n#### Search emoji by alias\n\nEmoji data is from https://github.com/github/gemoji/blob/master/db/emoji.json\n\n```swift\nSmile.emoji(alias: \"japanese_castle\") // 🏯\n```\n\n#### Find alias by emoji\n\n```swift\nSmile.alias(emoji: \"🏯\") // japanese_castle\n```\n\n#### Replace alias within a string\n\n```swift\nSmile.replaceAlias(string: \":santa: is coming to :european_castle:\") // 🎅 is coming to 🏰\n```\n\n### Category\n\n#### Find category of emoji\n\nEmoji data is from https://github.com/github/gemoji/blob/master/db/Category-Emoji.json\n\n```swift\nSmile.category(emoji: \"😁\") // people\n```\n\n### Manipulation\n\n#### Extract all emojis within a string\n\n```swift\nSmile.extractEmojis(string: \"Find 🔑and🔎\") // 🔑🔎\n```\n\n#### Remove all emojis within a string\n\n```swift\nSmile.removeEmojis(string: \"Find 🔑and🔎\") // Find and\n```\n\n#### Assemble\n\n```swift\nSmile.assemble(emojis: [\"👨\", \"🏫\") // 👨‍🏫\nSmile.assemble(emojis: [\"👨\", \"👩\", \"👧\", \"👦\"] // 👨‍👩‍👧‍👦\n```\n\n#### Disassemble\n\n```swift\nSmile.disassemble(emoji: \"👨‍🏫\") // [👨, 🏫]\n```\n\n## Script\n\nUpdate emoji list by running\n\n```js\nnode parser.js\n```\n\n## Installation\n\n**Smile** is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod 'Smile'\n```\n\n**Smile** is also available through [Carthage](https://github.com/Carthage/Carthage).\nTo install just write into your Cartfile:\n\n```ruby\ngithub \"onmyway133/Smile\"\n```\n\n## Author\n\nKhoa Pham, onmyway133@gmail.com\n\n## Contributing\n\nWe would love you to contribute to **Smile**, check the [CONTRIBUTING](https://github.com/onmyway133/Smile/blob/master/CONTRIBUTING.md) file for more info.\n\n## License\n\n**Smile** is available under the MIT license. See the [LICENSE](https://github.com/onmyway133/Smile/blob/master/LICENSE.md) file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonmyway133%2FSmile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonmyway133%2FSmile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonmyway133%2FSmile/lists"}