title: How to work with both a horizontal & vertical scrollview (swift)
body: <p>Im working on a screen (shown below) that utilizes two scroll views. <strong>The Vertical scroll view is the base and it has another view within it for all the content. Within that view theres another scroll view that moves horizontally.</strong> </p>
  
  <p>So for reference: 
  Scroll view (vertical) -> view -> Scroll view (horizontal)</p>
  
  <p>Another thing to point out is the intrinsic text view within the first scroll view that pulls data from the backend. </p>
  
  <p>The problem Im facing is this: The vertical scroll view allows you to move up and down but it stops based off of whatever height is set. So if I set the height to 1000, it will get to that point but how won't go any further. If the description is longer than that, it gets cut off so</p>
  
  <p><strong>1) how do I adjust the scrollview (vertical) so that he scrolls as far as it needs to in order to display the entire description text? Basically, how do I adjust the height of the scrollview based off of the height of the textview.</strong></p>
  
  <p>The second issue Im facing is the fact that the vertical scrollview works but the horizontal one doesn't. I've used this horizontal scrollview in many other apps with the same constraints (shown below) but never with it being within a vertical scroll view. Now that its there, it won't work while the other works, and vice versa. so,</p>
  
  <p>2) <strong>How do I correctly constrain both scroll views so that they work in unison?</strong> The vertical scroll view should scroll up and down and whenever I swipe left or right on the horizontal scroll view, it should move correctly as well.</p>
  
  <p><a href="https://i.stack.imgur.com/XyUat.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XyUat.png" alt="Screen Design"></a></p>
  
  <p><a href="https://i.stack.imgur.com/y3RGW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/y3RGW.png" alt="Screen constraints &amp; layout"></a></p>
  
  <p><a href="https://i.stack.imgur.com/7QYqm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7QYqm.png" alt="Screen constraints &amp; layout continued"></a></p>