Skip to content

Commit

Permalink
🐛 (GEK): Move shuffle from gameplay to ViewViewModel
Browse files Browse the repository at this point in the history
  • Loading branch information
macteuts committed Nov 14, 2023
1 parent 7f500d6 commit a879ad0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ extension GameplayAssociation where ChoiceModelType == GameplayAssociationChoice

convenience init(choices: [GameplayAssociationChoiceModel], shuffle: Bool = false) {
self.init()
self.choices.send(shuffle ? choices.shuffled() : choices)
self.choices.send(choices)
self.state.send(.playing)
}

Expand Down

0 comments on commit a879ad0

Please sign in to comment.