<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIPresentationController/presentationTransitionWillBegin()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIPresentationController(im)presentationTransitionWillBegin"
  },
  "title" : "presentationTransitionWillBegin()"
}
-->

# presentationTransitionWillBegin()

Notifies the presentation controller that the presentation animations are about to start.

```
func presentationTransitionWillBegin()
```

## Discussion

The default implementation of this method does nothing. Subclasses can override it and use it to add custom views to the view hierarchy and to create any animations associated with those views. To perform your animations, get the transition coordinator of the presented view controller and call its [`animate(alongsideTransition:completion:)`](/documentation/UIKit/UIViewControllerTransitionCoordinator/animate(alongsideTransition:completion:)) or [`animateAlongsideTransition(in:animation:completion:)`](/documentation/UIKit/UIViewControllerTransitionCoordinator/animateAlongsideTransition(in:animation:completion:)) method. Calling those methods ensures that your animations are executed at the same time as any other transition animations.

For an example of how to implement this method, see [`Add custom views to a presentation`](/documentation/UIKit/UIPresentationController#Add-custom-views-to-a-presentation).

---

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)