title: How to get a UIViewController with buttons to work every time it loads, not every second time it loads
body: <p>When loading controller two from the press of a button in controller one, the buttons in controller two work.</p>
  
  <p>If the back (navigation bar) button is pressed in controller two to load controller one and then the button to load controller two is pressed again, the buttons in controller two don't work.</p>
  
  <p>They work on the next attempt and every second attempt.</p>
  
  <p>It's possibly something to do with the 'if statement' but I need a solution so the buttons open and close as intended.</p>
  
  <p>// Controller one</p>
  
  <pre><code>@objc func demoButtonTap()
  {
      let demoController = DemoController()
      self.navigationController?.pushViewController(demoController, animated: true)
  }
  </code></pre>
  
  <p>// Controller two</p>
  
  <pre><code>@objc func demo1ButtonTap()
  {
      if demoTextView1.isHidden == false
      {
          demoTextView1.isHidden = true
      }
      else
      {
          demoTextView1.isHidden = false
      }
      demoTextView2.isHidden = true
  }
  
  @objc func demo2ButtonTap()
  {        
      if demoTextView2.isHidden == false
      {
          demoTextView2.isHidden = true
      }
      else
      {
          demoTextView2.isHidden = false
      }
      demoTextView1.isHidden = true
  }
  </code></pre>