Created
October 13, 2021 15:41
-
-
Save VAnsimov/0d6d72233cc8ffccb55d86721fc1b32e 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
final class ListIntent { | |
// 1 | |
private weak var model: ListModelActionsProtocol? | |
init(model: ListModelActionsProtocol) { | |
self.model = model | |
} | |
func viewOnAppear() { | |
let number = Int.random(in: 0 ..< 100) | |
// 2 | |
model?.parse(number: number) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment