Skip to content
Swift Decodable for TOML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Dependencies
Documentation
Resources
Scripts
Sources/TOMLDecoder
TOMLDecoder.xcodeproj
TOMLDecoder.xcworkspace
Tests
.gitignore
.swift-version
.travis.yml
LICENSE.md
Makefile
Package.resolved
Package.swift
README.md
TOMLDecoder.podspec

README.md

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

With CocoaPods

use_frameworks!

pod "TOMLDecoder"

With SwiftPM

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

With Carthage

github "dduan/TOMLDecoder"

License

MIT. See LICENSE.md.

You can’t perform that action at this time.