<aside> 🛠 Make sure you have read and understood Layout — Building Views before reading this page.

</aside>

Constraints

let scrollView = UIScrollView()
let contentView = UIView()

view.addSubview(scrollView)
scrollView.addSubview(contentView)
contentView.addSubview(...)

scrollView.snp.makeConstraints { make in
	make.edges.equalToSuperview()
}

contentView.snp.makeConstraints { make in
	make.height.greaterThanOrEqualTo(safeArea) // Optional, but recommended
	make.width.equalTo(view)
	make.edges.equalToSuperview()
}