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

# presentationTransitionDidEnd(_:)

Notifies the presentation controller that the presentation animations finished.

```
func presentationTransitionDidEnd(_ completed: Bool)
```

## Parameters

`completed`

<doc://com.apple.documentation/documentation/Swift/true> if the animations completed and the presented view controller is now visible or <doc://com.apple.documentation/documentation/Swift/false> if the animations were canceled and the presenting view controller is still visible.

## Discussion

The default implementation of this method does nothing. Subclasses can override this method and use it to perform any required cleanup. For example, if the completed parameter is <doc://com.apple.documentation/documentation/Swift/false>, you would use this method to remove your presentation’s custom views from the view hierarchy.

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)