CodableWrappers

3.1.0

A Collection of PropertyWrappers to make custom Serialization of Swift Codable Types easy
GottaGetSwifty/CodableWrappers

What's New

3.1.0

2025-01-07T06:47:41Z

This minor version update has 2 main features:

  • Full support for Swift 6's Strict concurrency checking
  • New @ISO8601Coding Property Wrappers using Date.ISO8601FormatStyle to fully support Sendable

See full release notes for more details

Changelog

  • CI Updates in #46
  • Adding Sendable conformance and Testing updates in #51
  • Adding additional tests in #52
  • Updating Swift Syntax and adding compatibility tests with the help of @Matejkob in #53
  • Fixing tests due to differing (en/de)coding depending on version in #54
  • Strict Concurrency additions and Documentation updates in #55

Full Changelog: 3.0.1...3.1.0

CodableWrappers

Simplified Serialization with Property Wrappers

Make Complex Codable Serialization a breeze with declarative annotations!

@CustomCodable @SnakeCase
struct User: Codable {
    let firstName: String
    let lastName: String
    @SecondsSince1970DateCoding
    var joinDate: Date
    @CustomCodingKey("data")
    var imageData: Data
}

3.0 released! Release Notes


Documentation

Full DocC documentation here thanks to the Swift Package Index!

Installation

Swift Package Manager *Preferred*

URL:

https://github.com/GottaGetSwifty/CodableWrappers.git

Manifest:

dependencies: [
    .package(url: "https://github.com/GottaGetSwifty/CodableWrappers.git", .upToNextMajor(from: "3.0.0" )),
]

CocoaPods

*WARNING* CocoaPods is not supported from version 3.0 to avoid complications with Swift Macros.

pod 'CodableWrappers', '~> 2.0.0'

Available CodingKey Macros

Available Property Wrappers

Additional Customization

Additional Links


Compatibility

  • 3.x supports Swift 5.9+
  • 2.x supports Swift 5.2+
  • 1.x supports Swift 5.1+

Contributions

If there is a standard Serialization or Coding Key strategy that could be added feel free to open an issue requesting it and/or submit a pull request with the new option.

Description

  • Swift Tools 5.9.0
View More Packages from this Author

Dependencies

Last updated: Wed Jun 04 2025 07:55:12 GMT-0900 (Hawaii-Aleutian Daylight Time)