title: Reset State Variables To Initial Values xcode
body: <p>What is the best way to go about resetting state variables, using a button. I've tried a load of different funcs but none work.</p>
  <p>I'm trying to use this button:</p>
  <pre><code>primaryButton: .destructive(Text(&quot;Delete&quot;)) {
  
  Code
  
  },secondaryButton: 
  .cancel()
  </code></pre>
  <p>To reset these State variables:</p>
  <pre><code>@State var statsValue1 = 0 
  @State var statsValue2 = 0 
  @State var statsValue3 = 0 
  @State var statsValue4 = 0 
  @State var statsValue5 = 0 
  @State var statsValue6 = 0
  </code></pre>
  <p>(which are in the main content view)</p>