You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
struct TestM: Codable,DefaultsSerializable{
var name: String?
var age: Int? = 0
}
extension DefaultsKeys{
var tests: DefaultsKey<[String:[TestM]]>{.init("tests", defaultValue: [String:[TestM]]())}
}
let testM = TestM.init(name: "test", age: 18)
Defaults[\.tests]["tests"] = [testM]
The text was updated successfully, but these errors were encountered:
yanxiaobing
changed the title
How to support [key:value] types with value:Codable,DefaultsSerializable
How to support [key:value] type with value:Codable,DefaultsSerializable
Jun 14, 2022
The text was updated successfully, but these errors were encountered: