When cards are matched, they stay at the end of all cards with background of random color

This commit is contained in:
2023-04-17 21:49:38 +02:00
parent 595b82222c
commit d3d6b39213
3 changed files with 36 additions and 5 deletions

View File

@@ -6,6 +6,7 @@
//
import Foundation
import SwiftUI
class SetGameModelView: ObservableObject {
@@ -38,5 +39,9 @@ class SetGameModelView: ObservableObject {
self.model.addCardsToTable(3)
}
var colors: [Int : Color] {
self.model.colors
}
}