title: Toggle hidden state of UILabel
body: <p>I want to use the press of a button to toggle the hidden state of a couple of UILabels. Press the button once, it unhides them, press again the labels are hidden, the default state for these labels being hidden.</p>
  
  <p>Here is what I thought would work (but obviously does not):</p>
  
  <pre><code>@IBAction func information(sender: AnyObject, forEvent event: UIEvent)
  {
      if(infoLocation.hidden = true)
      {
          self.infoLocation.hidden = false
      }
      else
      {
          self.infoLocation.hidden = true
      }
  
      //**********************************//
      if(infoName.hidden = true)
      {
          self.infoName.hidden = false
      }
      else
      {
          self.infoName.hidden = true
      }
  
      //**********************************//
      if(infoVersion.hidden = true)
      {
          self.infoVersion.hidden = false
      }
      else
      {
          self.infoVersion.hidden = true
      }
  
  
  }
  </code></pre>