Created
September 20, 2019 06:46
-
-
Save d-srd/7ff2e0c7bc21e9452ead37ec9ab3396a 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
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