Skip to content

Instantly share code, notes, and snippets.

@cipolleschi
Created March 29, 2020 11:26
Show Gist options
  • Select an option

  • Save cipolleschi/c36b861744bca82886f4024334a8d887 to your computer and use it in GitHub Desktop.

Select an option

Save cipolleschi/c36b861744bca82886f4024334a8d887 to your computer and use it in GitHub Desktop.
Setup interactions for the dice roller
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