Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumSwiftCodable custom keysSingle-choice MCQ

A struct has a property you want excluded from both encoding and decoding. Which approach correctly excludes it while still compiling with synthesized `Codable`?

struct Settings: Codable { var theme: String var cachedColor: Int = 0 }