I have a json file that looks like this
I want to iterate through this in my ContentView. I have another view called BookView that is used like this:
that will be taking data from the json file and these views will be displayed in a Form. The UI is working but I cannot actually make it run off my data
I have tried so many articles online and nothing is working.
Please can someone help me.
Code Block json [ { "name": "Dune", "author": "Frank Herbert", "page": 77 }, { "name": "Ready Player One", "author": "Ernest Cline", "page": 234 } ]
I want to iterate through this in my ContentView. I have another view called BookView that is used like this:
Code Block swift BookView(name: "Dune", author: "Bob", page: "77")
that will be taking data from the json file and these views will be displayed in a Form. The UI is working but I cannot actually make it run off my data
I have tried so many articles online and nothing is working.
Please can someone help me.