title: Passing array to another VC (Swift)
body: <p>I have <strong>ViewControler.swift</strong> (main) and <strong>ViewControllerHistory.swift</strong> (for history). </p>
  
  <p>How can I make the history stored in VC (for history) <strong>after pressing the button (=).</strong></p>
  
  <p>I have code to store the values into an array.</p>
  
  <p>How can I send this array to the <strong>ViewControllerHistory.swift</strong> (for history)</p>
  
  <pre><code>@IBAction func EqualSave(_ sender: UIButton) {
      let result = "\(firstOperand)\(equalitySignPressed)\(secondOperand)="
      ArrayWithResults.append(result as AnyObject)
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/ivaQK.png" rel="nofollow noreferrer"><strong>VC (for history)</strong></a></p>
  
  <p><strong><a href="https://i.stack.imgur.com/vHwkY.jpg" rel="nofollow noreferrer">Screen Main VC</a></strong></p>