Having to use optionals everywhere instead of being able to simply set default values for Codable is maddening... Spent too long figuring out why my decoder wasn't returning any data. @jordanmorgan10.bsky.social to the rescue: www.swiftjectivec.com/swift-codabl... Brb, decorating EVERYTHING 👀
Post
swiftjectivec.com@DefaultIfMissing - My Codable FailsafeSometimes, you just want some leniancy with codable. Here’s how I get it.
It really feels like the missing piece to work with data from an API. I took this for granted in Typescript/JS 😂 Is there a reason you don’t have arrays included? I added them myself but now I’m wondering if I’m missing something that would cause an error. So far it seems to work, tho!
0 reposts0 likes