Latest 0.1.3
Homepage https://github.com/dduan/TOMLDecoder
License MIT
Platforms ios 8.0, osx 10.10, tvos 9.0, watchos 2.0, requires ARC
Dependencies NetTime, TOMLDeserializer
Authors

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.3")

With Carthage

github "dduan/TOMLDecoder"

License

MIT. See LICENSE.md.

Latest podspec

{
    "name": "TOMLDecoder",
    "version": "0.1.3",
    "summary": "Swift Decodable support for TOML.",
    "homepage": "https://github.com/dduan/TOMLDecoder",
    "license": {
        "type": "MIT",
        "file": "LICENSE.md"
    },
    "authors": {
        "Daniel Duan": "[email protected]"
    },
    "social_media_url": "https://twitter.com/daniel_duan",
    "platforms": {
        "ios": "8.0",
        "osx": "10.10",
        "tvos": "9.0",
        "watchos": "2.0"
    },
    "swift_version": "5.0",
    "source": {
        "git": "https://github.com/dduan/TOMLDecoder.git",
        "tag": "0.1.3"
    },
    "source_files": "Sources/**/*.swift",
    "requires_arc": true,
    "module_name": "TOMLDecoder",
    "dependencies": {
        "NetTime": [
            "~> 0.2.1"
        ],
        "TOMLDeserializer": [
            "~> 0.2.3"
        ]
    }
}

Pin It on Pinterest

Share This