When cards are matched, they stay at the end of all cards with background of random color
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user