Create a toggle to show certains list value in swiftUI

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-APP
JSON file : https://gist.githubusercontent.com/thomjlg/0782e9e8e27c346af3600bff9923f294/raw/9705fb0c6b40eae59578755b86e331bea257972b/films2.json

Replies

Even when you can put a link to the whole project, you should better show the core parts as text.

What is the first view? What is the second view? Which is the Toggle of your concern?


What do you mean with fail to link to json attribute? Please describe your expected result, and the actual result.


One more, this sort of questions should be posted in the SwiftUI topic area.