<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()
}

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/348ffa2f-a26a-467c-9e8a-420ce99d9619/Dibujo_(1).png