UIScrollView using Content and Frame Layout Guide iOS

Pavlos Simas
3 min readNov 21, 2021

A lot of people are struggling to add a UIScrollView in their project. Sometimes there are developers that are using UITableView instead of UIScrollView just to avoid the scroll configuration.

Using Content and Frame Layout Guide the UIScrollView can take the height of its content without any code, just using the constraints in the Storyboard! (Note: this is for iOS 11 and above)

Let’s see how to do it. First create your Storyboard and add an UIViewController. We will just make an example with only one ScrollView…

--

--

Pavlos Simas

iOS Developer, with passion about Development, Marketing and Finance. Join Medium from the following link: https://simaspavlos.medium.com/membership