Swiftpack.co - dduan/TOMLDecoder as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by dduan.
dduan/TOMLDecoder 0.2.2
From TOML to Swift Codable types.
⭐️ 65
🕓 1 year ago
iOS macOS watchOS tvOS
.package(url: "https://github.com/dduan/TOMLDecoder.git", from: "0.2.2")

TOMLDecoder

Amazon Linux 2
CentOS 7
macOS
Ubuntu Bionic
Ubuntu Focal
Windows

TOML parser for your Swift Codables.

struct Team: Codable {
    struct Player: Codable {
        let id: String
        let health: Int
        let joinDate: Date
    }

    let players: [Player]
}

let team = try TOMLDecoder().decode(Team.self, from: tomlData)

TOMLDecoder has a relatively simple set of APIs. Learn more in the introduction.

Installation

With SwiftPM

.package(url: "https://github.com/dduan/TOMLDecoder", from: "0.2.2")

License

MIT. See LICENSE.md.

GitHub

link
Stars: 65
Last commit: 1 year ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Related Packages

Release Notes

0.2.2
1 year ago
  • Fixed a bug when parsing float decimals (#47)
  • Add support for Windows

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