I’m creating an app with three views in SwiftUI;
- ContentView
- GameView
- ResultsView
In the GameView I have declared an Array which I need to access in the ResultsView - how do I do this. I want to use the array data in the ResultView to undertake evaluations and manipulate data in an array created in ResultsView.
I’ve researched the site and found a couple of suggested methods (@environementobject, observableobject) - but this is all confusing to me…any tips?