A number of convenience tools to simplify custom types decoding without needing to override compiler-syntesized decoding initializer.
The package provides two property wrappers: @CodableValue<Value>
and @RecoverableCodableValue<Value, DefaultValue>
.
Use the first one if no default value is needed.
If you need some sort of default value to be assigned when no value has been found, provide the second one with a type conforming to CodableRawValueType
protocol.
Thanks to NewDev for helping out with optional issue.
link |
Stars: 0 |
Last commit: 2 years ago |
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics