Instance Method


Tells the delegate that zooming of the content in the scroll view is about to commence.


optional func scrollViewWillBeginZooming(_ scrollView: UIScrollView, with view: UIView?)



The scroll-view object displaying the content view.


The view object whose content is about to be zoomed.


This method is called at the beginning of zoom gestures and in cases where a change in zoom level is to be animated. You can use this method to store state information or perform any additional actions prior to zooming the view’s content.

See Also

Managing Zooming

func viewForZooming(in: UIScrollView) -> UIView?

Asks the delegate for the view to scale when zooming is about to occur in the scroll view.

func scrollViewDidEndZooming(UIScrollView, with: UIView?, atScale: CGFloat)

Tells the delegate when zooming of the content in the scroll view completed.

func scrollViewDidZoom(UIScrollView)

Tells the delegate that the scroll view’s zoom factor changed.