Swiftpack.co -  iharandreyev/Easy-Codable as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
iharandreyev/Easy-Codable
An attempt to implement custom decoding mechanisms while using build-in Swift decoding synthesis
.package(url: "https://github.com/iharandreyev/Easy-Codable.git", from: "1.0.1")

Easy-Decodable

A number of convenience tools to simplify custom types decoding without needing to override compiler-syntesized decoding initializer.

Usage

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.

Contributions

Thanks to NewDev for helping out with optional issue.

GitHub

link
Stars: 0
Last commit: 4 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API