Popularity
1.0
Growing
Activity
1.1
-
39
2
2

Programming language: Swift
License: MIT License
Tags: Data Management     TOML    
Latest version: v0.1.6
Add another 'TOML' Library

README

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](Documentation/Introduction.md).

Installation

With CocoaPods

use_frameworks!

pod "TOMLDecoder"

With SwiftPM

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

With Carthage

github "dduan/TOMLDecoder"

License

MIT. See LICENSE.md.


*Note that all licence references and agreements mentioned in the TOMLDecoder README section above are relevant to that project's source code only.