title: Swift Array(repeating:, count:) behaviour
body: <p>Why does only one element from the <code>labels</code> array appear as a subview of <code>view</code>, specifically when using <code>Array(repeating:, count:)</code>?</p>
  
  <pre><code>let labels = Array(repeating: UILabel(), count: 7)
  
  print(labels.count) //7
  
  let view = UIView()
  
  for label in labels {
      view.addSubview(label)
  }
  
  print(view.subviews.count) //1
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/zen2t.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zen2t.png" alt="test in the Playground"></a></p>