I'm kind of surprised that Date isn't codable, since it seems like the only actual data in the struct is a TimeInterval, i.e. a Double. Is there some subtlety that I'm missing?
Date
conforms to Codable
both on Apple platforms and on all other platforms where Foundation is supported (as well as the upcoming swift-foundation efforts) — what's indicating to you that it doesn't conform?
1 Like
Brain cramp. I see it now.
It didn't help that I was mixing struct things with class things, so Xcode was not being helpful.
1 Like