<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "tvOS: 18.0.0 -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIViewController/Transition/ZoomOptions",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIZoomTransitionOptions"
  },
  "title" : "UIViewController.Transition.ZoomOptions"
}
-->

# UIViewController.Transition.ZoomOptions

Options for a zoom transition.

```
class ZoomOptions
```

## Topics

### Setting options

[`var alignmentRectProvider: ((UIViewController.Transition.ZoomOptions.AlignmentRectContext) -> CGRect?)?`](/documentation/UIKit/UIViewController/Transition/ZoomOptions/alignmentRectProvider)

A closure that returns the alignment rectangle for the starting and ending views.

[`@property (nonatomic, copy, nullable) struct CGRect (^)(UIZoomTransitionAlignmentRectContext *) alignmentRectProvider;`](/documentation/UIKit/UIZoomTransitionOptions/alignmentRectProvider)

A block that returns the alignment rectangle for the starting and ending views.

[`class AlignmentRectContext`](/documentation/UIKit/UIViewController/Transition/ZoomOptions/AlignmentRectContext)

An object that contains a zoom transition’s starting and ending views.

[`var dimmingColor: UIColor?`](/documentation/UIKit/UIViewController/Transition/ZoomOptions/dimmingColor)

The dimming color.

[`var dimmingVisualEffect: UIBlurEffect?`](/documentation/UIKit/UIViewController/Transition/ZoomOptions/dimmingVisualEffect)

The dimming visual effect.

### Accessing the animation state

[`var interactiveDismissShouldBegin: ((UIViewController.Transition.ZoomOptions.InteractionContext) -> Bool)?`](/documentation/UIKit/UIViewController/Transition/ZoomOptions/interactiveDismissShouldBegin)

A closure that determines whether an interactive dismissal can begin.

[`class InteractionContext`](/documentation/UIKit/UIViewController/Transition/ZoomOptions/InteractionContext)

Data you can use to determine whether an interactive dismissal can begin.

## Relationships

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

### Conforms To

[`NSCopying`](/documentation/Foundation/NSCopying)

[`Equatable`](/documentation/Swift/Equatable)

[`Hashable`](/documentation/Swift/Hashable)

[`CVarArg`](/documentation/Swift/CVarArg)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

---

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)