@AppStorage storing a self defined structure

How can I store a struct in @AppStorage? I've been trying

struct TodoItem: Codable, Hashable, Identifiable {
    var id: UUID = UUID()
    var name: String = "New Todo"
    var description: String = "Description here..."
    var done: Bool
}

@AppStorage("todo") var todo: [TodoItem] = [] // No exact matches in call to initializer 

Any help is appreciated🙏🙏

@AppStorage storing a self defined structure
 
 
Q