title: Swift - Loop through different object types
body: <p>Current I do this to loop through all of my buttons:</p>
  <pre><code>for objects in view.subviews {
      if let object = objects as? UIButton {
          object.isEnabled = false
      }
  }
  </code></pre>
  <p>Can I also include <code>UIView</code> and <code>UILabel</code> in this loop?</p>
  <p>So instead of only <code>objects as? UIButton</code>, I want <code>objects as? UIButton, UIView, UILabel</code>.</p>