TOMLDecoder
February 5, 2026 ยท View on GitHub
A fast, Swift-native, minimal dependency library that fully implements TOML spec 1.1.0.
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)
Read the documentation to get started.
License
MIT. See LICENSE.md.