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.
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.