scrollViewDidEndZooming(_:with:atScale:)
Tells the delegate when zooming of the content in the scroll view completed.
Declaration
optional func scrollViewDidEndZooming(_ scrollView: UIScrollView, with view: UIView?, atScale scale: CGFloat)Parameters
- scrollView:
The scroll-view object displaying the content view.
- view:
The view object representing that part of the content view that needs to be scaled.
- scale:
The scale factor to use for scaling; this value must be between the limits established by the
UIScrollViewproperties Maximumzoomscale and Minimumzoomscale.
Discussion
The scroll view also calls this method after any “bounce” animations. It also calls this method after animated changes to the zoom level and after a zoom-related gesture ends (regardless of whether the gesture resulted in a change to the zoom level).