|
I am very new and have been trying to adapt some of the json decoding tutorials to a custom json file and I cannot seem to find the right combination of declared structs and decoding. The code below triggers fatalError and a failure to decode from file message. |
|
|
|
Hi
the
and
|
|
There is a good model editor to construct the struct called Ducky. Stewart Lynch does a good video on how to use Ducky Model Editor for Swift Developers. For the Bundle Decoder I tend to use Paul's
and then in View to call
|
SPONSORED Take the pain out of configuring and testing your paywalls. RevenueCat's Paywalls allow you to remotely configure your entire paywall view without any code changes or app updates.
Sponsor Hacking with Swift and reach the world's largest Swift community!
This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.
All interactions here are governed by our code of conduct.
Link copied to your pasteboard.