title: Get the frame of a UIStackView subViews
body: <p>I have created a UIStackView in IB which has the distribution set to Fill Equally. I am looking to get the frame for each subView but the following code always returns (0, 0, 0, 0).</p>
  
  <pre><code>class ViewController: UIViewController {
      @IBOutlet weak var stackView: UIStackView!
  
      override func viewDidLoad() {
          super.viewDidLoad()
  
          let pView = UIView()
          let sView = UIView()
  
          pView.backgroundColor = UIColor.red
          sView.backgroundColor = UIColor.orange
  
          stackView.addArrangedSubview(pView)
          stackView.addArrangedSubview(sView)
      }
  
      override func viewDidLayoutSubviews() {
          print(stackView.arrangedSubviews[0].frame)
          print(stackView.arrangedSubviews[1].frame)
      }
  }
  </code></pre>
  
  <p>I would think that a stack view set to fill equally would automatically set the calculate it.</p>
  
  <p>Any help would be appreciated.</p>