KeyedCodable Swift嵌套键映射与快速编码解码

KeyedCodable 是 Swift 的一个小而强大的工具,它的目标就是让你告别手动的 Encodable 和 Decodable,轻松搞定嵌套的键映射。你可以直接用它来快速编码和解码,省去那些麻烦的样板代码。说实话,它挺符合平时写代码的习惯,简单、直接又高效。最关键的是,KeyedCodable 跟标准的 Codable 完全兼容,使用起来没有任何负担。要是你写 Swift 项目时经常遇到编码解码的麻烦,它绝对能帮你省不少时间,代码也清爽得多。嗯,尤其是对那些嵌套结构的数据,它真的挺有用的。

zip
KeyedCodable-master.zip 预估大小:35个文件
folder
KeyedCodable-master 文件夹
file
KeyedCodable.podspec 1KB
file
LICENSE 1KB
file
Package.swift 922B
file
.gitignore 319B
file
keyedCodable.gif 1.12MB
file
CHANGELOG.md 1KB
folder
KeyedCodable 文件夹
folder
Sources 文件夹
file
Helpers.swift 3KB
file
ZeroDecodable.swift 11KB
file
Transformers.swift 3KB
file
KeyedKey.swift 3KB
file
KeyedJSONDecoder.swift 15KB
file
KeyedConfig.swift 844B
file
AnyKey.swift 1KB
file
KeyedJSONEncoder.swift 16KB
file
Info.plist 776B
file
KeyedCodable.h 544B
file
README.md 12KB
folder
KeyedCodable.xcodeproj 文件夹
folder
project.xcworkspace 文件夹
file
contents.xcworkspacedata 155B
folder
xcshareddata 文件夹
file
IDEWorkspaceChecks.plist 238B
file
project.pbxproj 53KB
folder
xcshareddata 文件夹
folder
xcschemes 文件夹
file
KeyedCodable-iOS.xcscheme 4KB
file
KeyedCodable-macOS.xcscheme 4KB
file
KeyedCodable-tvOS.xcscheme 4KB
file
KeyedCodable-watchOS.xcscheme 3KB
folder
KeyedCodableTests 文件夹
file
ExtensionTests.swift 2KB
file
FlatTests.swift 2KB
file
AllKeysTests.swift 3KB
file
KeyedCodableTests.swift 2KB
file
ZeroDecodableTests.swift 2KB
file
InnerTests.swift 4KB
file
KeyOptionsTests.swift 3KB
file
DecodePathTest.swift 2KB
file
Info.plist 701B
file
TransformersTests.swift 2KB
file
OptionalArrayElementTests.swift 2KB
zip 文件大小:1.16MB