title: How to access a variable of an instance of a view in ContentView SwiftUI?
body: <p>So in ContentView, I've created a view with the following:</p>
  
  <pre><code>ViewName()
  </code></pre>
  
  <p>I'd like to change a variable in ContentView to the value of a variable in ViewName. I was hoping I could do something like:</p>
  
  <pre><code>ViewName() {
      contentViewVariable = self.variableNameInViewNameInstance
  }
  </code></pre>
  
  <p>but that was just kind of a guess as to how to access the value; it didn't work. Any suggestions would be greatly appreciated!</p>