Swiftpack.co - iharandreyev/Easy-Codable as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by iharandreyev.
iharandreyev/Easy-Codable 1.0.1
An attempt to implement custom decoding mechanisms while using build-in Swift decoding synthesis
⭐️ 0
🕓 3 years ago
iOS
.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: 2 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

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