<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "tvOS: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIViewControllerTransitioningDelegate/interactionControllerForPresentation(using:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UIViewControllerTransitioningDelegate(im)interactionControllerForPresentation:"
  },
  "title" : "interactionControllerForPresentation(using:)"
}
-->

# interactionControllerForPresentation(using:)

Asks your delegate for the interactive animator object to use when presenting a view controller.

```
optional func interactionControllerForPresentation(using animator: any UIViewControllerAnimatedTransitioning) -> (any UIViewControllerInteractiveTransitioning)?
```

## Parameters

`animator`

The transition animator object returned by your [`animationController(forPresented:presenting:source:)`](/documentation/UIKit/UIViewControllerTransitioningDelegate/animationController(forPresented:presenting:source:)) method.

## Return Value

The interactive animator object to use to manage the timing of the transition or `nil` if you do not want to support interactive transitions.

## Discussion

Use this method to create and return an object that implements the methods of the [`UIViewControllerInteractiveTransitioning`](/documentation/UIKit/UIViewControllerInteractiveTransitioning) protocol. The implementation of that protocol should configure the event-handling code required to manage the appearance of the target view controller. You may return `nil` from this method if you do not want to the animations to be interactive.

> Important:
> If you implement this method, you must also implement the ``doc://com.apple.uikit/documentation/UIKit/UIViewControllerTransitioningDelegate/animationController(forPresented:presenting:source:)`` method and use it to return a custom transition animator object. If the ``doc://com.apple.uikit/documentation/UIKit/UIViewControllerTransitioningDelegate/animationController(forPresented:presenting:source:)`` method returns `nil`, UIKit does not call this method.

For more information on implementing an interactive animator object, see [`UIViewControllerInteractiveTransitioning`](/documentation/UIKit/UIViewControllerInteractiveTransitioning).

---

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)