-
-
Notifications
You must be signed in to change notification settings - Fork 364
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom Types and Bridges #259
Comments
@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
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
The text was updated successfully, but these errors were encountered: