---
title: "dismissalTransitionDidEnd(_:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uipresentationcontroller/dismissaltransitiondidend(_:)"
---

# dismissalTransitionDidEnd(_:)

Notifies the presentation controller that the dismissal animations finished.

## Declaration

```swift
func dismissalTransitionDidEnd(_ completed: Bool)
```

## Parameters

- `completed`: doc://com.apple.documentation/documentation/Swift/true if the animations completed and the presented view controller was dismissed or doc://com.apple.documentation/documentation/Swift/false if the animations were canceled and the presented view controller is still visible.

## Discussion

Discussion The default implementation of this method does nothing. Subclasses can override this method and use it to remove any custom views that the presentation controller added to the view hierarchy. Remove your views only if the completed parameter is true.

## See Also

### Tracking the transition’s start and end

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