Open khuffie opened 3 years ago
@khuffie sorry, this paragraph in the Readme wasn't updated properly... I just created a PR with a fix for that. In the meantime, try that:
public struct WeatherSettings: DefaultsSerializable {
static var _defaults: DefaultsKeyedArchiverBridge { DefaultsKeyedArchiverBridge() }
static var _defaultsArray: DefaultsKeyedArchiverBridge { DefaultsKeyedArchiverBridge() }
let enabled:String
let location:String
let isCelsius:Bool
}
I'm trying to create a simple struct with some setting values:
However, I keep getting this error: "Cannot specialize non-generic type 'DefaultsBridge'"
I tried using this code from the documentation and I'm getting the same error: