viewForZooming(in:)
Asks the delegate for the view to scale when zooming is about to occur in the scroll view.
Declaration
optional func viewForZooming(in scrollView: UIScrollView) -> UIView?Parameters
- scrollView:
The scroll-view object displaying the content view.
Return Value
A UIView object that will be scaled as a result of the zooming gesture. Return nil if you don’t want zooming to occur.