---
title: presentationTransitionWillBegin()
framework: uikit
role: symbol
role_heading: Instance Method
path: uikit/uipresentationcontroller/presentationtransitionwillbegin()
---

# presentationTransitionWillBegin()

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

## Declaration

```swift
func presentationTransitionWillBegin()
```

## Discussion

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:) or 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.

## See Also

### Tracking the transition’s start and end

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