SwiftyUserDefaults icon indicating copy to clipboard operation
SwiftyUserDefaults copied to clipboard

Xcode 13, swift 5.6 , simple codable struct model always show Type 'User' does not conform to protocol 'DefaultsSerializable'

Open zangqilong198812 opened this issue 2 years ago • 3 comments

截屏2022-04-28 11 17 40

I use cocoapods install SwiftyUserDefaults, and the version is 5.3 I'm really confused. but If i implementation the DefaultsSerializable, it works. 截屏2022-04-28 11 19 23

zangqilong198812 avatar Apr 28 '22 03:04 zangqilong198812

// Xcode 13.3.1 require

extension UserCodable: DefaultsSerializable {
    static var _defaults: DefaultsCodableBridge<UserCodable>
    { return DefaultsCodableBridge<UserCodable>() }
    
    static var _defaultsArray: DefaultsCodableBridge<[UserCodable]>
    { return  DefaultsCodableBridge<[UserCodable]>()}
}

absolutvodka8888 avatar May 04 '22 02:05 absolutvodka8888

I have the same issue. This isn't required in the earlier XCode versions...

bardonadam avatar May 10 '22 14:05 bardonadam

👀 https://github.com/sunshinejr/SwiftyUserDefaults/issues/285

ShoMasegi avatar May 11 '22 06:05 ShoMasegi