Created
October 13, 2021 15:37
-
-
Save VAnsimov/83cd5586905d15c7f5cfae458cfb07d1 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 ListView: View { | |
// 1 | |
@StateObject private var container: MVIContainer<ListIntent, ListModelStatePotocol> | |
var body: some View { | |
// 2 | |
Text(container.model.text) | |
.padding() | |
.onAppear(perform: { | |
// 3 | |
self.container.intent.viewOnAppear() | |
}) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment