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
CocoaPods
Withuse_frameworks!
pod "TOMLDecoder"
SwiftPM
With.package(url: "https://github.com/dduan/TOMLDecoder", from: "0.1.6")
Carthage
Withgithub "dduan/TOMLDecoder"
License
MIT. See LICENSE.md
.