TOML parser for your Swift Codable
s.
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.
.package(url: "https://github.com/dduan/TOMLDecoder", from: "0.2.2")
MIT. See LICENSE.md
.
link |
Stars: 65 |
Last commit: 1 year ago |
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics