title: UIStackView not showing as expected
body: <p>I want to add a <code>UIStackView</code> of log in buttons to my app, and so I added this code:</p>
  
  <pre><code>override func viewDidLayoutSubviews()
      {
          super.viewDidLayoutSubviews()
  
  
          SignInButtonsStackView.center.x = self.view.center.x
          SignInButtonsStackView.leadingAnchor.constraint(equalTo: view.leadingAnchor, constant: 10)
          SignInButtonsStackView.trailingAnchor.constraint(equalTo: view.trailingAnchor, constant: 10)
          SignInButtonsStackView.spacing = 5
  
  
          SignInButtonsStackView.addArrangedSubview(FacebookSignInButton)
          SignInButtonsStackView.addArrangedSubview(GoogleSignInButton)
  
      }
  </code></pre>
  
  <p>I am setting the <code>UIStackView</code>'s constraints first and then adding the buttons.</p>
  
  <p>My goal is to be able to add more sign in buttons in the future while adding minimum code to do so.</p>
  
  <p>This is what I get :</p>
  
  <p><a href="https://i.stack.imgur.com/WLnN8.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WLnN8.jpg" alt="enter image description here"></a></p>
  
  <p>Which is not only not same width, but the height is messed up too.</p>
  
  <p>How can I make sure all items in my UIStackView are of same width, height and spacing ? How do I fix this view to look fine ?</p>
  
  <h2>Edit</h2>
  
  <p>I have this in debug window:</p>
  
  <pre><code>"&lt;NSLayoutConstraint:0x600000288700 UILayoutGuide:0x6000007b0760'UIViewSafeAreaLayoutGuide'.bottom == UIStackView:0x7f9b04d15420.bottom + 187   (active)&gt;",
      "&lt;NSLayoutConstraint:0x600000288ac0 V:|-(499)-[UIStackView:0x7f9b04d15420]   (active, names: '|':UIView:0x7f9b04d166e0 )&gt;",
      "&lt;NSLayoutConstraint:0x60c000290f40 GIDSignInButton.height == 10   (active, names: GIDSignInButton:0x7f9b04d076e0 )&gt;",
      "&lt;NSLayoutConstraint:0x60800028cd50 'UISV-canvas-connection' V:[GIDSignInButton]-(0)-|   (active, names: GIDSignInButton:0x7f9b04d076e0, '|':UIStackView:0x7f9b04d15420 )&gt;",
      "&lt;NSLayoutConstraint:0x60c00028bb80 'UISV-canvas-connection' UIStackView:0x7f9b04d15420.top == FBSDKLoginButton:0x7f9b04d0a4d0'Continue with Facebook'.top   (active)&gt;",
      "&lt;NSLayoutConstraint:0x60c00028ad20 'UISV-fill-equally' GIDSignInButton.height == FBSDKLoginButton:0x7f9b04d0a4d0'Continue with Facebook'.height   (active, names: GIDSignInButton:0x7f9b04d076e0 )&gt;",
      "&lt;NSLayoutConstraint:0x60c000288610 'UISV-spacing' V:[FBSDKLoginButton:0x7f9b04d0a4d0'Continue with Facebook']-(5)-[GIDSignInButton]   (active, names: GIDSignInButton:0x7f9b04d076e0 )&gt;",
      "&lt;NSLayoutConstraint:0x60800028d1b0 'UIView-Encapsulated-Layout-Height' UIView:0x7f9b04d166e0.height == 736   (active)&gt;",
      "&lt;NSLayoutConstraint:0x600000288840 'UIViewSafeAreaLayoutGuide-bottom' V:[UILayoutGuide:0x6000007b0760'UIViewSafeAreaLayoutGuide']-(0)-|   (active, names: '|':UIView:0x7f9b04d166e0 )&gt;"
  )
  
  Will attempt to recover by breaking constraint 
  &lt;NSLayoutConstraint:0x60c000290f40 GIDSignInButton.height == 10   (active, names: GIDSignInButton:0x7f9b04d076e0 )&gt;
  </code></pre>