---
title: "addCompletion(_:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uiviewpropertyanimator/addcompletion(_:)"
---

# addCompletion(_:)

Adds the specified completion block to the animator.

## Declaration

```swift
func addCompletion(_ completion: @escaping (UIViewAnimatingPosition) -> Void)
```

```swift
func addCompletion() async -> UIViewAnimatingPosition
```

## Parameters

- `completion`: A block to execute when the animations finish. This block has no return value and takes the following parameter:

## Discussion

Discussion Completion blocks are executed after the animations finish normally. If you call the stopAnimation(_:) method, the completion blocks are not called if you specify true for the method’s parameter. If you specify false for the parameter, the animator executes the completion blocks normally after you call the its finishAnimation(at:) method. You may add completion blocks to an animator at any time, including while it is stopped.

## See Also

### Modifying animations

- [addAnimations(_:)](uikit/uiviewpropertyanimator/addanimations(_:).md)
- [addAnimations(_:delayFactor:)](uikit/uiviewpropertyanimator/addanimations(_:delayfactor:).md)
- [continueAnimation(withTimingParameters:durationFactor:)](uikit/uiviewpropertyanimator/continueanimation(withtimingparameters:durationfactor:).md)
