Skip to content

Instantly share code, notes, and snippets.

@kajornsakp
Created April 21, 2019 07:20
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 kajornsakp/122bde4be8c1f0643225b3399fdabf69 to your computer and use it in GitHub Desktop.
Save kajornsakp/122bde4be8c1f0643225b3399fdabf69 to your computer and use it in GitHub Desktop.
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