<!--
{
  "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/dismissalTransitionDidEnd(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIPresentationController(im)dismissalTransitionDidEnd:"
  },
  "title" : "dismissalTransitionDidEnd(_:)"
}
-->

# dismissalTransitionDidEnd(_:)

Notifies the presentation controller that the dismissal animations finished.

```
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

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 <doc://com.apple.documentation/documentation/Swift/true>.

---

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)