Skip to content

Instantly share code, notes, and snippets.

@laevandus
Created June 19, 2019 13:18
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 laevandus/3aefd87f7e3e9f4592431102dd1927a1 to your computer and use it in GitHub Desktop.
Save laevandus/3aefd87f7e3e9f4592431102dd1927a1 to your computer and use it in GitHub Desktop.
struct ContentView: View {
@ObjectBinding var conversation: Conversation
var body: some View {
NavigationView {
VStack {
List(self.conversation.messages) { message in
Text(message.text)
}
InputView(conversation: self.conversation)
}.navigationBarTitle(Text("Conversation"))
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment