---
title: "updateInteractiveTransition(_:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uiviewcontrollercontexttransitioning/updateinteractivetransition(_:)"
---

# updateInteractiveTransition(_:)

Updates the completion percentage of the transition.

## Declaration

```swift
func updateInteractiveTransition(_ percentComplete: CGFloat)
```

## Discussion

Discussion While tracking user events, gesture recognizers or your interactive animator objects should call this method regularly to update the progress toward completing the transition. If, during tracking, the interactions cross a threshold that you consider signifies the completion or cancellation of the transition, stop tracking events and call the finishInteractiveTransition() or cancelInteractiveTransition() method.

## See Also

### Reporting the transition progress

- [completeTransition(_:)](uikit/uiviewcontrollercontexttransitioning/completetransition(_:).md)
- [pauseInteractiveTransition()](uikit/uiviewcontrollercontexttransitioning/pauseinteractivetransition().md)
- [finishInteractiveTransition()](uikit/uiviewcontrollercontexttransitioning/finishinteractivetransition().md)
- [cancelInteractiveTransition()](uikit/uiviewcontrollercontexttransitioning/cancelinteractivetransition().md)
- [transitionWasCancelled](uikit/uiviewcontrollercontexttransitioning/transitionwascancelled.md)
