Swift Codable is still revealing tings to me. Last challenge I took was decoding a dynamic keyed json file. None of the keys nor the type of the leafs the path points to can be predicted. I’m thinking of writing a blog post about that. Would that interest any of you?

Today I used the swift-case-paths package by @pointfreeco to solve one of the major issues. A path point to a value in a enum with associated values. How to extract that value without loosing the type? Nice use case for there library?

https://github.com/pointfreeco/swift-case-paths

GitHub - pointfreeco/swift-case-paths: 🧰 Case paths extends the key path hierarchy to enum cases.

🧰 Case paths extends the key path hierarchy to enum cases. - pointfreeco/swift-case-paths

GitHub