Post

Replies

Boosts

Views

Activity

Comment on Parsing a JSON Array Response into SwiftUI View
Hey there, as I am working on this project I've come across an issue when trying to list another value such as: item.meanings I followed the same solution you recommended with your comment and updated the struct Meaning with the CodingKeys and UUID() but it will not work in a ForEach. Any ideas? Thank you again!
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Aug ’23
Comment on Parsing a JSON Array Response into SwiftUI View
Hello there Thank you for your response. The changes to my do-catch + error response I will definitely implement! In regards to the JSON response, I utilized the Free Dictionary APIs main example response in their homepage link and I inputted it into the JSON Quicktype tool I found recommended online when creating Swift structs which I generates all the potential JSON values and marks as optional. Thanks again, cheers. 👍
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Aug ’23