{"id":2978,"url":"https://github.com/getstream/Streamoji","last_synced_at":"2025-08-03T12:31:53.963Z","repository":{"id":53818387,"uuid":"279684534","full_name":"GetStream/Streamoji","owner":"GetStream","description":":godmode: Custom emoji rendering library for iOS apps with support for GIF \u0026 still images - plug-in extension for UITextView - performance, cache ✅ -  Made with 💘 by @GetStream","archived":true,"fork":false,"pushed_at":"2022-10-07T10:50:58.000Z","size":7029,"stargazers_count":253,"open_issues_count":5,"forks_count":15,"subscribers_count":9,"default_branch":"main","last_synced_at":"2024-10-29T11:29:55.157Z","etag":null,"topics":["emoji","gif","ios","swift"],"latest_commit_sha":null,"homepage":"https://getstream.io/","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GetStream.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-14T20:17:39.000Z","updated_at":"2024-07-14T16:48:42.000Z","dependencies_parsed_at":"2022-08-21T10:10:50.270Z","dependency_job_id":null,"html_url":"https://github.com/GetStream/Streamoji","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GetStream%2FStreamoji","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GetStream%2FStreamoji/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GetStream%2FStreamoji/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GetStream%2FStreamoji/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GetStream","download_url":"https://codeload.github.com/GetStream/Streamoji/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228543235,"owners_count":17934449,"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","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":["emoji","gif","ios","swift"],"created_at":"2024-01-05T20:16:27.977Z","updated_at":"2024-12-07T00:31:09.946Z","avatar_url":"https://github.com/GetStream.png","language":"Swift","funding_links":[],"categories":["UI"],"sub_categories":["TextField \u0026 TextView"],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/GetStream/Streamoji/\"\u003e\u003cimg src=\"https://github.com/GetStream/Streamoji/raw/main/meta/images/banner.gif\" width=\"60%\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003chr /\u003e\n\n[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/getstream/streamoji/Swift)](https://github.com/GetStream/Streamoji/actions?query=workflow%3ASwift)\n[![Cocoapods](https://img.shields.io/cocoapods/v/Streamoji)](https://cocoapods.org/pods/Streamoji)\n![Cocoapods platforms](https://img.shields.io/cocoapods/p/Streamoji)\n![SPM \u0026 Carthage compatible](https://img.shields.io/badge/SPM%20%26%20Carthage-compatible-green)\n[![License](https://img.shields.io/github/license/getstream/streamoji)](/LICENSE)\n[![Twitter](https://img.shields.io/twitter/url?url=https%3A%2F%2Fgithub.com%2FGetStream%2FStreamoji)](https://twitter.com/intent/tweet?text=Wow:\u0026url=https%3A%2F%2Fgithub.com%2FGetStream%2FStreamoji)\n[![Twitter Follow](https://img.shields.io/twitter/follow/getstream_io?style=social)](https://twitter.com/intent/follow?screen_name=getstream_io)\n\n### :warning: This project has a new home :house: https://github.com/cardoso/Streamoji\n\nCustom emojis are a fun way to bring more life and customizability to your apps. They're available in some of the most popular apps, such as Slack, Discord, and Twitch. However, iOS SDK doesn't provide straight forward support for custom emojis out of the box. Now, you're a couple code lines away from adding them to your own app with this library.\n\nStreamoji is a custom emoji rendering library for iOS. It supports GIF \u003cimg src=\"https://github.com/GetStream/Streamoji/blob/main/meta/emojis/carlton.gif?raw=true\" width=\"24\" /\u003e, images \u003cimg src=\"https://github.com/GetStream/Streamoji/blob/main/meta/emojis/doge.png?raw=true\" width=\"24\"/\u003e, and unicode 🦊. It loads from URLs or local assets. Caching is taken care of and performance is ⚡️ fast! Made with 💘 by the folks @ [Stream](https://getstream.io).\n\n\u003cimg align=\"right\" src=\"https://github.com/GetStream/Streamoji/raw/main/meta/images/demo.gif\" width=\"33%\" /\u003e\n\n## Usage\n\n### 1. Define Emojis\n\nFirst step is to define your custom emojis in a dictionary with the key being the :shortcode: for the emoji and the EmojiSource being the, uhmmm, source of the emoji! It can be from GIF or image in a local asset, remote URL, or even a unicode character. You can also define aliases (alternate codes).\n\n```swift\nlet exampleEmojis: [String: EmojiSource] = [\n    \"baby_yoda\": .imageAsset(\"baby-yoda-soup.gif\"),\n    \"banana_dance\": .imageAsset(\"bananadance.gif\"),\n    \"excuse_me\": .imageAsset(\"excuseme.gif\"),\n    \"party_parrot\": .imageAsset(\"party_parrot.gif\"),\n    \"this_is_fine\": .imageAsset(\"this-is-fine-fire.gif\"),\n    \"what\": .imageAsset(\"what.png\"),\n    \"homer_disappear\": .imageAsset(\"homer-disappear.gif\"),\n    \"let_me_in\": .imageUrl(\"https://github.com/GetStream/Streamoji/blob/main/meta/emojis/let_me_in.gif?raw=true\"),\n    \"smiley\": .character(\"😄\"),\n    \"heart\": .character(\"❤️\"),\n    \"banana\": .alias(\"banana_dance\"),\n    \"parrot\": .alias(\"party_parrot\")\n]\n```\n\n### 2. Configure UITextView\n\nAfter defining your emojis, you should call `UITextView.configureEmojis`:\n\n```swift\ntextView.attributedText = NSAttributedString(string:\n    \"\"\"\n    :banana_dance: Streamoji :party_parrot:\n    :baby_yoda: This is a UITextView! :excuse_me:\n\n    Supports:\n    GIF :this_is_fine:\n    Image :what:\n    Local file :homer_disappear:\n    Remote file :let_me_in:\n    Unicode :smiley:\n    \"\"\"\n)\n\ntextView.configureEmojis(exampleEmojis, rendering: .highestQuality)\n```\n\nYou can also tweak a couple (for now) rendering options: quality and scale in relation to the surrounding text.\n\n## Example\n\nTo run the example project, clone the repo, and run `pod install` from the Example directory first.\n\n## Installation\n\nStreamoji is available through [CocoaPods](https://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod 'Streamoji'\n```\n\n## Author\n\n[@cardoso](https://github.com/cardoso), matheus@getstream.io\n\n## License\n\nStreamoji is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetstream%2FStreamoji","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgetstream%2FStreamoji","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetstream%2FStreamoji/lists"}