scrollRectToVisible(_:animated:)
Scrolls a specific area of the content so that it’s visible in the scroll view.
Declaration
func scrollRectToVisible(_ rect: CGRect, animated: Bool)Parameters
Discussion
This method scrolls the content view so that the area defined by rect is just visible inside the scroll view. If the area is already visible, the method does nothing.