Hi,
I try ti develop an iPhone app for my personal use.
I use swiftUI on xcode. What i want is to do an app with :
- homepage (name: menu) :
- List of all my films
- link to another swiftUI view with each films' informations
- films informations (name: contentview) :
- toggle if the film was seen
- slider (1 to 5) to note the film
I use a json file with :
- id : Int, each film has a different id
- nom : String, title of the films
- idL : String, first letter of the film
- note : Int, note of the film
- isShow : Bool, true if the film was seen, false if not
On the homepage i want to display each title with an arrow to go to informations page
I want to separate films' list by section (idL), for the moment i just have the list...
example :
A
All "A..." films
B
All "B..." films
...
I want to link toggle and slider with the json attributes and with UserData to dinamically change these properties to modify when i see new films.
For the moment, when i change toggle value or slider value, it works for each film but when i close the application, it disappear... and it's not link to the json file attributes...
Link of the .json file I use :
My project on GitHub : https://github.com/thomjlg/Films-APP
Thanks for your help !