All Projects → GetStream → Streamoji

GetStream / Streamoji

Licence: mit
Custom emoji rendering library for iOS apps with support for GIF & still images - plug-in extension for UITextView - performance, cache ✅ - Made with 💘 by @GetStream

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Streamoji

Spedittool
An efficient and scalable library for inputing and displaying gif or @mention on graph-text mixed TextView/EditText
Stars: ✭ 292 (+35.81%)
Mutual labels:  gif, emoji
Facemoji
😆 A voice chatbot that can imitate your expression. OpenCV+Dlib+Live2D+Moments Recorder+Turing Robot+Iflytek IAT+Iflytek TTS
Stars: ✭ 320 (+48.84%)
Mutual labels:  gif, emoji
Yeetgif
gif effects CLI. single binary, no dependencies. linux, osx, windows. #1 workplace productivity booster. #yeetgif #eggplant #golang
Stars: ✭ 467 (+117.21%)
Mutual labels:  gif, emoji
Hxphotopicker
图片/视频选择器 - 支持LivePhoto、GIF图片选择、3DTouch预览、在线下载iCloud上的资源、编辑图片/视频、浏览网络图片 功能 Imitation wx photo/image picker - support for LivePhoto, GIF image selection, 3DTouch preview, Download the resources on iCloud online, browse the web image function
Stars: ✭ 2,363 (+999.07%)
Mutual labels:  gif
Sharemeow
😻 text shots service
Stars: ✭ 180 (-16.28%)
Mutual labels:  emoji
Emoji Helper
A small cross-browser emoji cheatsheet extension 👍
Stars: ✭ 194 (-9.77%)
Mutual labels:  emoji
Emoji Catalog
Get access to +3500 emojis as class constants
Stars: ✭ 211 (-1.86%)
Mutual labels:  emoji
Emoji
在网页中显示emoji表情符号
Stars: ✭ 177 (-17.67%)
Mutual labels:  emoji
Grunt Image
Optimize PNG, JPEG, GIF, SVG images with grunt task.
Stars: ✭ 201 (-6.51%)
Mutual labels:  gif
Free Gophers Pack
✨ This pack of 100+ gopher pictures and elements will help you to build own design of almost anything related to Go Programming Language: presentations, posts in blogs or social media, courses, videos and many, many more.
Stars: ✭ 2,343 (+989.77%)
Mutual labels:  emoji
Videotogif
A simple Mac app to easily convert videos to GIF.
Stars: ✭ 189 (-12.09%)
Mutual labels:  gif
Emoji Search
😄 Emoji synonyms to build your own emoji-capable search engine (elasticsearch, solr)
Stars: ✭ 184 (-14.42%)
Mutual labels:  emoji
Gifexceptionbundle
😛 The GhostBuster of your exception page!
Stars: ✭ 197 (-8.37%)
Mutual labels:  gif
Azpainter
Full color painting software for Unix-like systems for illustration drawing. This is un-official little fixed repository for package maintainers of image editor AzPainter (based on "mlib" toolkit). Official repository - http://azsky2.html.xdomain.jp/arc/download.html
Stars: ✭ 179 (-16.74%)
Mutual labels:  gif
Screentogif
🎬 ScreenToGif allows you to record a selected area of your screen, edit and save it as a gif or video.
Stars: ✭ 16,066 (+7372.56%)
Mutual labels:  gif
Emojify Webpack Plugin
🦄 Turn your code into emoji
Stars: ✭ 178 (-17.21%)
Mutual labels:  emoji
Gifcap
Create GIFs from Android devices (pronounced "gif cap")
Stars: ✭ 201 (-6.51%)
Mutual labels:  gif
Pino Colada
cute ndjson formatter for pino 🌲🍹
Stars: ✭ 189 (-12.09%)
Mutual labels:  emoji
Textformatter
Text formatting library that supports BBCode, HTML and other markup via plugins. Handles emoticons, censors words, automatically embeds media and more.
Stars: ✭ 188 (-12.56%)
Mutual labels:  emoji
Giph
simple gif recorder
Stars: ✭ 193 (-10.23%)
Mutual labels:  gif


GitHub Workflow Status Cocoapods Cocoapods platforms SPM & Carthage compatible License Twitter Twitter Follow

Custom 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.

Streamoji is a custom emoji rendering library for iOS. It supports GIF , images , and unicode 🦊. It loads from URLs or local assets. Caching is taken care of and performance is ⚡️ fast! Made with 💘 by the folks @ Stream.

Usage

1. Define Emojis

First 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).

let exampleEmojis: [String: EmojiSource] = [
    "baby_yoda": .imageAsset("baby-yoda-soup.gif"),
    "banana_dance": .imageAsset("bananadance.gif"),
    "excuse_me": .imageAsset("excuseme.gif"),
    "party_parrot": .imageAsset("party_parrot.gif"),
    "this_is_fine": .imageAsset("this-is-fine-fire.gif"),
    "what": .imageAsset("what.png"),
    "homer_disappear": .imageAsset("homer-disappear.gif"),
    "let_me_in": .imageUrl("https://github.com/GetStream/Streamoji/blob/main/meta/emojis/let_me_in.gif?raw=true"),
    "smiley": .character("😄"),
    "heart": .character("❤️"),
    "banana": .alias("banana_dance"),
    "parrot": .alias("party_parrot")
]

2. Configure UITextView

After defining your emojis, you should call UITextView.configureEmojis:

textView.attributedText = NSAttributedString(string:
    """
    :banana_dance: Streamoji :party_parrot:
    :baby_yoda: This is a UITextView! :excuse_me:

    Supports:
    GIF :this_is_fine:
    Image :what:
    Local file :homer_disappear:
    Remote file :let_me_in:
    Unicode 😃
    """
)

textView.configureEmojis(exampleEmojis, rendering: .highestQuality)

You can also tweak a couple (for now) rendering options: quality and scale in relation to the surrounding text.

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Installation

Streamoji is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'Streamoji'

Author

@cardoso, [email protected]

License

Streamoji is available under the MIT license. See the LICENSE file for more info.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].