<!--
{
  "availability" : [
    "iOS: 3.2.0 -",
    "iPadOS: 3.2.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIScrollViewDelegate/scrollViewWillBeginZooming(_:with:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UIScrollViewDelegate(im)scrollViewWillBeginZooming:withView:"
  },
  "title" : "scrollViewWillBeginZooming(_:with:)"
}
-->

# scrollViewWillBeginZooming(_:with:)

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

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

## Parameters

`scrollView`

The scroll-view object displaying the content view.

`view`

The view object whose content is about to be zoomed.

## Discussion

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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)