- Drag UIScrollView to storyboard
- Add leading, trailing, top, bottom of UIScrollView
- Add UIView Inside UIScrollView & Rename it to scrollContainerView
- Add leading, trailing, top, bottom of UIScrollView with parent UIScrollView
- Add Equal Width content of scrollContainerView with respect to UIScrollVIew
- Add objects to the scrollContainerView – i have added two button make sure leading trailing top & bottom is set with respect to the scrollContainerView
- Make sure the to add last item(UIButton) constraint to bottom of the scrollContainerView
Note: If you need horizontal scroll make scrollContainerView equal height constraint with UIScrollView
Here is the Youtube video of the same process. —