Automatic Height for UITableView into UIScrollView Swift
Insert an UITableView that takes all the height of it’s content and will be scrollable through UIScrollView

Let’s see how to insert an UITableView into a UIScrollView and make the scrollView content height based on all of the UITableView items.