Asks the delegate for the view to scale when zooming is about to occur in the scroll view.
SDKs
- iOS 2.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
Framework
- UIKit
Declaration
optional func viewForZooming(in scrollView: UIScroll View) -> 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.