GottaGetSwifty / CodableWrappers

A Collection of PropertyWrappers to make custom Serialization of Swift Codable Types easy
Apache License 2.0
648 stars 40 forks source link

Add support for Optional Properties #3

Closed GottaGetSwifty closed 4 years ago

GottaGetSwifty commented 5 years ago

Due to the way PropertyWrappers are implemented and some current Swift constraints, the currently available wrappers don't support Optionals. Simply creating an optional version will fail with a missing key when decoding, but there is a workaround pointed out here.

API is TBD, but the workaround should be used for now and deprecated when new features are available.

GottaGetSwifty commented 4 years ago

Added in v1.1.0