Skip to content

Instantly share code, notes, and snippets.

@VAnsimov
Created October 13, 2021 15:36
Show Gist options
  • Save VAnsimov/f66020c6062f3a34753950b00633b5dc to your computer and use it in GitHub Desktop.
Save VAnsimov/f66020c6062f3a34753950b00633b5dc to your computer and use it in GitHub Desktop.
extension ListView {
static func build() -> some View {
let model = ListModel()
let intent = ListIntent(model: model)
let container = MVIContainer(
intent: intent,
model: model as ListModelStatePotocol,
modelChangePublisher: model.objectWillChange)
return ListView(container: container)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment