Skip to content

Instantly share code, notes, and snippets.

@EnesKaraosman
Last active August 4, 2020 10:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EnesKaraosman/a1fbb74b210cc668ad2cbb28a5816013 to your computer and use it in GitHub Desktop.
Save EnesKaraosman/a1fbb74b210cc668ad2cbb28a5816013 to your computer and use it in GitHub Desktop.
ChatMessageKind
enum ImageLoadingKind {
case local(UIImage)
case remote(URL)
}
enum ChatMessageKind {
case text(String)
case image(ImageLoadingKind)
case location(LocationItem)
case contact(ContactItem)
case quickReply([QuickReplyItem])
case carousel([CarouselItem])
... // case audio(AudioItem)
... // case video(VideoItem)
..
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment