I put three vertical stack views to a horizontal stack view. Although the distribution of the horizontal stack view is set to Equal Spacing, the second vertical stack view is aligned to left on a simulator(The first one is aligned to left and the third one is aligned to right). Would there be any reasons that it is not allocated to center?

The constraints of the views are below:

  1. The horizontal stack view is aligned to center of its superview.
  2. The horizontal stack view's top space is 20 from its superview's top.
  3. The horizontal stack view's bottom space is 20 from its superview's bottom.
  4. The horizontal stack view's width is 450.
  5. The vertical stack views' width is 130.

Xcode Version: 10.1

Please let me know if there is any lacked information.

Related posts

Recent Viewed