title: how can I refer to UILabel or UIButton collections indexPath in array
body: <pre><code>@IBOutlet var buttons: [UIButton]!
  @IBOutlet var labels: [UILabel]!
  
  @IBAction func cevapSeçildi(_ sender: UIButton) {
      if sender == buttons[0] {
          `enter code here`
          labels[0].backgroundColor = UIColor.yellow 
      }
  }
  </code></pre>
  
  <p>I want this .. </p>
  
  <pre><code>var x : Int
  
  if sender == buttons[x] { labels[x].backgroundColor = UIColor.yellow }
  </code></pre>
  
  <p>can you help me please</p>