Skip to content

dduan/TOMLDecoder

Folders and files

NameName
Last commit message
Last commit date
Dec 15, 2024
Feb 23, 2022
Dec 16, 2024
Jan 13, 2021
Dec 16, 2024
Dec 15, 2024
Dec 15, 2024
Dec 15, 2024
Dec 15, 2024
Dec 15, 2024
Mar 9, 2019
Dec 15, 2024
Nov 20, 2024
Dec 15, 2024
Dec 15, 2024
Feb 22, 2022
Feb 22, 2022

Repository files navigation

TOMLDecoder

TOML parser for your Swift Codables.

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.

Installation

With SwiftPM

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

License

MIT. See LICENSE.md.