adding in rulebook global variable for the rules of the game

This commit is contained in:
talksik
2022-01-02 18:46:04 -08:00
parent 5a8159c31b
commit 7275899dd0
4 changed files with 34 additions and 5 deletions
@@ -312,7 +312,7 @@ struct CircleGridView: View {
secondaryButton: .default(Text("Add"), action: {
// create user friend if have space in circle
// TODO: view models should be able to do this validation, need some way of view models to speak to each other
if self.authSessionStore.friendsArr.count >= 10 {
if self.authSessionStore.friendsArr.count >= RuleBook.maxFriends {
self.innerCircleVM.toast = .maxFriendsInCircle
return
}