<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: -",
    "tvOS: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIViewController/Transition/zoom(options:sourceViewProvider:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "s:So26UIViewControllerTransitionC5UIKitE4zoom7options18sourceViewProviderABXDSo06UIZoomC7OptionsCSg_So0A0CSgSo0jc6SourcehI7ContextCctFZ"
  },
  "title" : "zoom(options:sourceViewProvider:)"
}
-->

# zoom(options:sourceViewProvider:)

Creates a zoom transition from the view that the source provider specifies.

```
static func zoom(options: UIViewController.Transition.ZoomOptions? = nil, sourceViewProvider: @escaping (UIViewController.Transition.ZoomSourceViewProviderContext) -> UIView?) -> Self
```

## Parameters

`options`

Additional options for the zoom transition.

`sourceViewProvider`

A closure that returns the view, for example a thumbnail image, that the animation zooms out from and zooms back in to.

## Discussion

The system calls the source view provider when it presents and when it dismisses the view controller. In the closure, return the [`UIView`](/documentation/UIKit/UIView) that the animation should zoom in from or zoom back out to, respectively. For more information, see [Enhancing your app with fluid transitions](/documentation/UIKit/enhancing-your-app-with-fluid-transitions).

---

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)