title: use a for loop for 2 different types
body: <p>I want my swift code to use a for loop with labels and textfields. The problem is my code below would not work. If it was all textfields or labels it would work but mixing the types does not work. I just wondered if there was some way to combine the different types and get this to work under one loop.</p>
  <pre><code>var name = UILabel()
  var age = UITextField()
  
  for i in [name,age] {
      i.textAlignment = .center
  }
  </code></pre>