Created
March 29, 2020 11:26
-
-
Save cipolleschi/c36b861744bca82886f4024334a8d887 to your computer and use it in GitHub Desktop.
Setup interactions for the dice roller
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
| override func setupInteraction() { | |
| self.rootView.rollDieInteraction = { [unowned self] die in | |
| self.dispatch(DiceRollerLogic.RollDice(die: die)) | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment