Swiftpack.co - Package - dduan/TOMLDecoder

TOMLDecoder

Decode your values from TOML v0.5.0 contents.

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)

Supported platforms: iOS, Linux, macOS, tvOS and watchOS.

Learn more in the introduction.

Installation

With CocoaPods

use_frameworks!

pod "TOMLDecoder"

With SwiftPM

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

With Carthage

github "dduan/TOMLDecoder"

License

MIT. See LICENSE.md.

Github

link
Stars: 26
Help us keep the lights on

Dependencies

Releases

0.1.5 - Oct 14, 2019

0.1.4 - Sep 16, 2019

Swift 5.1 support

0.1.3 - Mar 26, 2019

Swift 5 Support

0.0.3 - Mar 12, 2019

Added support for decoding NSNumber.

0.0.2 - Mar 12, 2019