<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "tvOS: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIViewControllerContextTransitioning/completeTransition(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UIViewControllerContextTransitioning(im)completeTransition:"
  },
  "title" : "completeTransition(_:)"
}
-->

# completeTransition(_:)

Notifies the system that the transition animation is done.

```
func completeTransition(_ didComplete: Bool)
```

## Parameters

`didComplete`

<doc://com.apple.documentation/documentation/Swift/true> if the transition to the presented view controller completed successfully or <doc://com.apple.documentation/documentation/Swift/false> if the original view controller is still being displayed.

## Discussion

You must call this method after your animations have completed to notify the system that the transition animation is done. The parameter you pass must indicate whether the animations completed successfully. For interactive animations, you must call this method in addition to the [`finishInteractiveTransition()`](/documentation/UIKit/UIViewControllerContextTransitioning/finishInteractiveTransition()) or [`cancelInteractiveTransition()`](/documentation/UIKit/UIViewControllerContextTransitioning/cancelInteractiveTransition()) method. The best place to call this method is in the completion block of your animations.

The default implementation of this method calls the animator object’s [`animationEnded(_:)`](/documentation/UIKit/UIViewControllerAnimatedTransitioning/animationEnded(_:)) method to give it a chance to perform any last minute cleanup.

---

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)