Add final notes
This project has been merged with TOMLDecoder, and will not receive further updates.*
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.
use_frameworks! pod "TOMLDeserializer"
.package(url: "https://github.com/dduan/TOMLDeserializer", from: "0.2.5")
github "dduan/TOMLDeserializer"
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.
Swift.String
Swift.Int64
Swift.Double
Swift.Bool
NetTime.LocalTime
NetTime.LocalDate
NetTime.LocalDateTime
NetTime.DateTime
Swift.[Any]
Swift.[String: Any]
MIT. See LICENSE.md.
LICENSE.md
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802032778号
This project has been merged with TOMLDecoder, and will not receive further updates.*
TOMLDeserializer
Turn TOML data into Swift objects.
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
With SwiftPM
With Carthage
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.
Swift.StringSwift.Int64Swift.DoubleSwift.BoolNetTime.LocalTimeNetTime.LocalDateNetTime.LocalDateTimeNetTime.DateTimeSwift.[Any]Swift.[String: Any]License
MIT. See
LICENSE.md.