SwiftyUserDefaults icon indicating copy to clipboard operation
SwiftyUserDefaults copied to clipboard

Modern Swift API for NSUserDefaults

Results 60 SwiftyUserDefaults issues
Sort by recently updated
recently updated
newest added

Hey all, as you might've noticed I didn't give the repository the love it deserves for quite some time. I was able to find maintainers for all the other projects...

``` struct TestM: Codable,DefaultsSerializable{ var name: String? var age: Int? = 0 } extension DefaultsKeys{ var tests: DefaultsKey{.init("tests", defaultValue: [String:[TestM]]())} } let testM = TestM.init(name: "test", age: 18) Defaults[\.tests]["tests"] =...

## Problem ```swift struct SomeStruct: Codable, DefaultsSerializable {} => type 'SomeStruct' does not conform to protocol 'DefaultsSerializable' ``` In Xcode 13.3, I can't build my apps about DefaultsSerializable. ```swift struct...

I use cocoapods install SwiftyUserDefaults, and the version is 5.3 I'm really confused. but If i implementation the DefaultsSerializable, it works.

extension DefaultsKeys { var ABC_UserInfo: DefaultsKey { .init("ABC_Key", defaultValue: nil)} } struct ABC_M: HandyJSON, DefaultsSerializable, Codable { var id:UInt32? } on Xcode 13.x build error 'nil' requires a contextual type...

13.3 b2 is throwing these errors now. `Type 'CustomQuestionType' does not conform to protocol 'DefaultsSerializable'` `Subscript 'subscript(dynamicMember:)' requires the types '[CustomQuestionType]' and 'Array.Bridge.T' be equivalent` `Cannot convert value of type...

Defaults["key"] can not use

Version 3 of `SwiftyUserDefaults` saved `Array` as Array in UserDefaults, if upgrade it to version 4 or 5.x, the value will be saved as `Codable`. Then the values will be...

In the README, there is an example to support existing types with different bridges, you can extend it similarly: ``` extension Data: DefaultsSerializable { public static var _defaultsArray: DefaultsArrayBridge {...