Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save lammertw/d85970239568732a48f5f70479f73aa6 to your computer and use it in GitHub Desktop.
Save lammertw/d85970239568732a48f5f70479f73aa6 to your computer and use it in GitHub Desktop.
struct RestaurantDetailView: View {
let viewModel: RestaurantDetailViewModel
var body: some View {
ObservingView(publisher: asPublisher(viewModel.output)) { output in
VStack {
Text(output.name)
Text(output.priceCategory)
// etc
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment