Software Dev

DefaultCodable

Here’s a nice straightforward, useful library that simplifies a problem all of us Swift developers face all the time: defaulting values when parsing JSON files.

DefaultCodable is a Swift µpackage that provides a convenient way to define default values in Codable types for properties that are not present or have a nil value.

👉 DefaultCodable on GitHub

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.