I'm an absolute beginner, so please indulge me. I have looked at a number of answers, both in Stack Overflow and elsewhere, that I thought might give me a solution, but none seem to work.
What I really want to do is transfer the value of a computed variable from one view to another.
As a poor alternative, because it would take a lot of rework, I could transfer the values of the variables the computation works on to the second view (a sheet is preferred, but I could use juts another view) and do the computation there instead.
I have tried binding, ObservableObject, Observed var, Published var, but none seem to work.
The base variables used for the computation are derived from a list view in the first view using @State, so each variable is a @State var. There are seven variables each with its own array.