Created
October 13, 2021 15:36
-
-
Save VAnsimov/f66020c6062f3a34753950b00633b5dc 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
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