Code Block struct Theme: Codable{ var color: Color var cards:[MemoryGame<CardContent>.Card] var name:String }
Here the var color: Color is not going to be Codable. So whats the solution.
Better check this thread:
How to have Codable Color?
You may need to implement init(from:) and encode(to:) by yourself.
How to have Codable Color?
You may need to implement init(from:) and encode(to:) by yourself.