UIScrollView Tutorial: Getting Started | raywenderlich.com

In this UIScrollView tutorial, you’ll create an app similar to the default iOS Photos app to learn all about paging, scrolling and more with UIScrollView.


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/5758454-uiscrollview-tutorial-getting-started

Hi & thank you for the tutorial!
In this function:

override func viewWillLayoutSubviews() {
super.viewWillLayoutSubviews()

updateMinZoomScaleForSize(view.bounds.size)

}

Why do you use the bounds of the view instead of the scrollView ?
Aren’t they supposed to be the same ?
I did tried it and I get a scale lower than it should, but I don’t understand why.

@ron.kliffer Can you please help with this when you get a chance? Thank you - much appreciated! :]

This tutorial is more than six months old so questions are no longer supported at the moment for it. Thank you!