Firstly I do apologise for the photos rather than the Code format but I am using an iPad and not a Computer.
Secondly, I am an absolute newbie and would be so grateful for some advice on this problem.
The first photo is two spliced together of one View which is a Form to input data into variables.
The second photo is of another View that I expected the data to be printed but this is not happening.
Please can somebody help as I have spent many days researching (which has been beneficial in learning more) but have hit a wall that I don’t seem to be able to get past!
Hard to say with limited code. Would really be better to get real and complete code so that we can test and better explain.
But redeclaring @State var cards, likely the problem: you create a new instance.
Try to replace
@State var cards = CardsOne()
by
@ObservedObject var cards = CardsOne()
You don't show where you use FormBuilderCardsOne.
So explain the problem: Had to put this in a separate struct to prevent a button pointing to the View below from another View producing an error?