Skip to content

Instantly share code, notes, and snippets.

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 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