Created
June 19, 2019 13:18
-
-
Save laevandus/3aefd87f7e3e9f4592431102dd1927a1 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 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