Created
April 21, 2019 07:20
-
-
Save kajornsakp/122bde4be8c1f0643225b3399fdabf69 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
var conversation: [TextMessage] = [] | |
// Then, for each message sent and received: | |
let message = TextMessage( | |
text: "How are you?", | |
timestamp: Date().timeIntervalSince1970, | |
userID: "userId", | |
isLocalUser: false) | |
conversation.append(message) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment