A simple struct var that is made modifiable by @State should only be used for one little view.
Which is why we should always have @State vars private.
@State var whatever is BAD
@State private var whatever is GOOD
A simple struct var that is made modifiable by @State should only be used for one little view.
Which is why we should always have @State vars private.
@State var whatever is BAD
@State private var whatever is GOOD