Skip to content

Instantly share code, notes, and snippets.

@d-srd
Created September 20, 2019 06:46
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 d-srd/7ff2e0c7bc21e9452ead37ec9ab3396a to your computer and use it in GitHub Desktop.
Save d-srd/7ff2e0c7bc21e9452ead37ec9ab3396a to your computer and use it in GitHub Desktop.
struct Message: Hashable, Identifiable {
enum Sender: Hashable {
case me
case other(named: String)
}
let id: Int
let sender: Sender
let content: String
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment