To change the scroll size
scrollView.frame = CGRectMake(originX, originY, width, height);
To resize the scrollable area:
scrollView.contentSize = CGSizeMake(width, height);
version of Swift 3
scrollView.frame = CGRect(x: scrollX, y: scrollY, width:width, height:height) scrollView.contentSize = CGSize(width:width, height: height)
Mert
source share