sunshinejr / SwiftyUserDefaults

Modern Swift API for NSUserDefaults
http://radex.io/swift/nsuserdefaults/static
MIT License
4.84k stars 364 forks source link

SwiftyUserDefaults no longer compiles in 13.3 b2 #288

Open chrisvanbuskirk opened 2 years ago

chrisvanbuskirk commented 2 years ago

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<CustomQuestionType>.Bridge.T' be equivalent

Cannot convert value of type '[Any]' to expected argument type 'Array<CustomQuestionType>.Bridge.T'

apps4everyone commented 2 years ago

Same for Beta 1. Can confirm DefaultsSerializable is not compiling for eg. an enum JZHourGridDivision in https://github.com/zjfjack/JZCalendarWeekView.

extension JZHourGridDivision: DefaultsSerializable {} --> error: Type 'JZHourGridDivision' does not conform to protocol 'DefaultsSerializable'

apps4everyone commented 2 years ago

look's like a duplicate of https://github.com/sunshinejr/SwiftyUserDefaults/issues/285

apps4everyone commented 2 years ago

same with RC, maybe a fix is needed here!

ricardopaiva commented 2 years ago

Please check this: https://github.com/sunshinejr/SwiftyUserDefaults/issues/285#issuecomment-1066897689

kaplanitay commented 2 years ago

Is there a fix on the way?