-
-
Save cardoso/0bdb6739d2bc1648bde9e2de2817fe5c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Streamoji | |
let exampleEmojis: [String: EmojiSource] = [ | |
// from assets [animated GIF] | |
"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"), | |
"homer_disappear": .imageAsset("homer-disappear.gif"), | |
"carlton": .imageAsset("carlton.gif"), | |
// from assets [still image (jpg, png, etc)] | |
"what": .imageAsset("what.png"), | |
"baby_yoda_2": .imageAsset("baby-yoda.png"), | |
// from remote url | |
"let_me_in": .imageUrl("https://github.com/GetStream/Streamoji/blob/main/meta/emojis/let_me_in.gif?raw=true"), | |
// from unicode | |
"smiley": .character("😄"), | |
"heart": .character("❤️"), | |
// aliases | |
"banana": .alias("banana_dance"), | |
"parrot": .alias("party_parrot") | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment