title: use 2 vertical stackviews within scrollview that increase height according to inner views
body: <p>I'm trying to create a screen with a scrollview holding various views and also two vertical stackviews using auto layout and constraints, while adding items to both stack views programmatically.
  The problem is that I cannot make both stack views be as large as the views within them.
  If I don't add any height constraints to the stack views, the inspector gives me a warning and not all the views are displayed within the screen.
  If I add enough height to the stack views, For cases when the height is too big, I will see blank spaces in the screen.
  How can I cause the stack views to have height matching the items on the screen while making sure all the other views on the screen will be displayed?</p>
  
  <p>I added 2 screenshots, the first with a small amount of items in both stacks when the screen looks good, the second with a lot of items in both stacks and you can see the result I described</p>
  
  <p>Also I added the code generating the result in the screenshots in the link below</p>
  
  <p><a href="https://github.com/guylis/swift_test/" rel="nofollow noreferrer">sample project</a></p>
  
  <p><a href="https://i.stack.imgur.com/LGgLt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LGgLt.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/yVq8M.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yVq8M.png" alt="enter image description here"></a></p>
  
  <p>Thank you</p>