title: StackView Not Aligning To The Left Programmatically
body: <p>My StackView that I am making programmatically is looking like this:</p>
  
  <p><em>Two Subviews:</em></p>
  
  <p><a href="https://i.stack.imgur.com/ubUs0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ubUs0.png" alt=""></a></p>
  
  <p><em>Three Subviews:</em></p>
  
  <p><a href="https://i.stack.imgur.com/Cmkks.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Cmkks.png" alt=""></a></p>
  
  <p><em>Four Subviews:</em></p>
  
  <p><a href="https://i.stack.imgur.com/f4w0E.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/f4w0E.png" alt=""></a></p>
  
  <p><strong>This is my code:</strong></p>
  
  <pre><code>    cameraButton.setImage(UIImage(named: "blueCamera"), for: .normal)
      cameraButton.addTarget(self, action: #selector(cameraTapped), for: .touchUpInside)
      cameraButton.widthAnchor.constraint(equalToConstant: 70.0).isActive = true
      calenderButton.setImage(UIImage(named: "calender"), for: .normal)
      calenderButton.addTarget(self, action: #selector(calanderTapped), for: .touchUpInside)
      calenderButton.widthAnchor.constraint(equalToConstant: 70.0).isActive = true
  
      stackView.frame = CGRect(x: 0, y: 0, width: scrollView.frame.size.width, height: scrollViewHeight)
      stackView.axis = .horizontal
      stackView.spacing = 5
      stackView.semanticContentAttribute = .forceLeftToRight
      stackView.alignment = .fill // .leading .firstBaseline .center .trailing .lastBaseline
      stackView.distribution = .equalSpacing // .fillEqually .fillProportionally .equalSpacing .equalCentering
      stackView.addArrangedSubview(calenderButton)
      stackView.addArrangedSubview(cameraButton)
      stackView.backgroundColor = UIColor(red: 0.161, green: 0.165, blue: 0.188, alpha: 1.00)
      scrollView.addSubview(stackView)
  </code></pre>
  
  <p><strong>What is the problem:</strong>
  The StackView is not aligning the subviews to the left.</p>
  
  <p><strong>What I am trying to achieve:</strong></p>
  
  <p>I want all the subviews aligned to the left, I tried to do this with <code>stackView.semanticContentAttribute = .forceLeftToRight</code>, but that didn't seem to achieve much.</p>