|
Hi Everyone! I'm trying to complete the challenge 3 of day 52, which requires to convert the Class structure to a Struct one to better manage the Codable conformance.
However, I'm pretty stuck: I added the properties inside a new struct called
However, Swift reports that the Class does not conform to Decodable or Encodable, and I can't understand how I should add this conformance. I tried this:
but it didn't work. Any suggestion? Thank you! |
|
Nevermind, I solved it after a bit more of study. I just added a simplified version of the CodingKeys structure done in the previous days of this project. |
|
|
|
I struggled with this one for a while as well but got it to work eventually, this is what I ended up with...
|
SPONSORED Get accurate app localizations in minutes using AI. Choose your languages & receive translations for 40+ markets!
Sponsor Hacking with Swift and reach the world's largest Swift community!
This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.
All interactions here are governed by our code of conduct.
Link copied to your pasteboard.