---
title: dismissalTransitionWillBegin()
framework: uikit
role: symbol
role_heading: Instance Method
path: uikit/uipresentationcontroller/dismissaltransitionwillbegin()
---

# dismissalTransitionWillBegin()

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

## Declaration

```swift
func dismissalTransitionWillBegin()
```

## Discussion

Discussion The default implementation of this method does nothing. Subclasses can override this method and use it to configure any animations associated with your presentation’s custom views. To perform your animations, get the transition coordinator of the presented view controller and call its animate(alongsideTransition:completion:) or animateAlongsideTransition(in:animation:completion:) method. Calling those methods ensures that your animations are executed at the same time as any other transition animations. Do not use this method to remove your views from the view hierarchy. Remove your views in the dismissalTransitionDidEnd(_:) method instead.

## See Also

### Tracking the transition’s start and end

- [presentationTransitionWillBegin()](uikit/uipresentationcontroller/presentationtransitionwillbegin().md)
- [presentationTransitionDidEnd(_:)](uikit/uipresentationcontroller/presentationtransitiondidend(_:).md)
- [dismissalTransitionDidEnd(_:)](uikit/uipresentationcontroller/dismissaltransitiondidend(_:).md)
