SyntaxFix
Write A Post
Hire A Developer
Questions
For swift4 using reduce:
self.scrollView.contentSize = self.scrollView.subviews.reduce(CGRect.zero, { return $0.union($1.frame) }).size