Posts

Post not yet marked as solved
2 Replies
1.2k Views
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 filmslink to another swiftUI view with each films' informationsfilms informations (name: contentview) : toggle if the film was seenslider (1 to 5) to note the filmI use a json file with :id : Int, each film has a different idnom : String, title of the filmsidL : String, first letter of the filmnote : Int, note of the filmisShow : Bool, true if the film was seen, false if notOn the homepage i want to display each title with an arrow to go to informations pageI 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 :https://gist.githubusercontent.com/thomjlg/0782e9e8e27c346af3600bff9923f294/raw/514bf34829d8ce964bd1182430dacc8a6ff2fe66/films2.jsonMy project on GitHub : https://github.com/thomjlg/Films-APPThanks for your help !
Posted
by thom.jlg.
Last updated
.
Post not yet marked as solved
1 Replies
434 Views
Hi,I create e swiftUI app on xcode.On the first view I display a list of all my films.On the second view, I display a toggle that dynamically change json value if the film was seen and I display a slider to note the film.I try to create a toggle on the first view to display only "not showed" films... I have the toggle but I fail to link to json attribute to list only these films...Can you help me ?My project : https://github.com/thomjlg/Films-APPJSON file : https://gist.githubusercontent.com/thomjlg/0782e9e8e27c346af3600bff9923f294/raw/9705fb0c6b40eae59578755b86e331bea257972b/films2.json
Posted
by thom.jlg.
Last updated
.