Latest 0.2.3
Homepage https://github.com/dduan/TOMLDeserializer
License MIT
Platforms ios 8.0, osx 10.10, tvos 9.0, watchos 2.0, requires ARC
Dependencies NetTime
Authors

Turn TOML data into Swift objects.

try TOMLDeserializer.tomlTable(with: data) // [String: Any]

Compatible with TOML v0.5.0

Unless you have a good reason not to, TOMLDecoder is probably a better choice for your TOML needs.

Installation

With CocoaPods

use_frameworks!

pod "TOMLDeserializer"

With SwiftPM

.package(url: "https://github.com/dduan/TOMLDeserializer", from: "0.2.3")

With Carthage

github "dduan/TOMLDeserializer"

Types

In addition to Swift types from the standard library, date and time are
represeted with types from the NetTime library. The following is a mapping
from types defined in the TOML spec to Swift types.

TOML Swift
String Swift.String
Integer Swift.Int64
Float Swift.Double
Boolean Swift.Bool
Local Time NetTime.LocalTime
Local Date NetTime.LocalDate
Local Date-Time NetTime.LocalDateTime
Offset Date-Time NetTime.DateTime
Array Swift.[Any]
Table Swift.[String: Any]

License

MIT. See LICENSE.md.

Latest podspec

{
    "name": "TOMLDeserializer",
    "version": "0.2.3",
    "summary": "Turn TOML data into Swift objects.",
    "homepage": "https://github.com/dduan/TOMLDeserializer",
    "license": {
        "type": "MIT",
        "file": "LICENSE.md"
    },
    "authors": {
        "Daniel Duan": "[email protected]"
    },
    "social_media_url": "https://twitter.com/daniel_duan",
    "platforms": {
        "ios": "8.0",
        "osx": "10.10",
        "tvos": "9.0",
        "watchos": "2.0"
    },
    "swift_version": "5.0",
    "source": {
        "git": "https://github.com/dduan/TOMLDeserializer.git",
        "tag": "0.2.3"
    },
    "source_files": "Sources/**/*.swift",
    "requires_arc": true,
    "module_name": "TOMLDeserializer",
    "dependencies": {
        "NetTime": [
            "~> 0.2.1"
        ]
    }
}

Pin It on Pinterest

Share This