<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIViewAnimating/finishAnimation(at:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UIViewAnimating(im)finishAnimationAtPosition:"
  },
  "title" : "finishAnimation(at:)"
}
-->

# finishAnimation(at:)

Finishes the animations and returns the animator to the inactive state.

```
func finishAnimation(at finalPosition: UIViewAnimatingPosition)
```

## Parameters

`finalPosition`

The final position for any view properties. Specify [`UIViewAnimatingPosition.current`](/documentation/UIKit/UIViewAnimatingPosition/current) to leave the view properties unchanged from their current values.

## Discussion

After putting the animator object into the [`UIViewAnimatingState.stopped`](/documentation/UIKit/UIViewAnimatingState/stopped) state, call this method to perform any final cleanup tasks. It is a programmer error to call this method at any time except after a call to the [`stopAnimation(_:)`](/documentation/UIKit/UIViewAnimating/stopAnimation(_:)) method where you pass <doc://com.apple.documentation/documentation/Swift/false> for the `withoutFinishing` parameter. Calling this method is not required, but is recommended in cases where you want to ensure that completion blocks or other final tasks are performed.

Implementations of this method are responsible for setting the state of the animator object to [`UIViewAnimatingState.inactive`](/documentation/UIKit/UIViewAnimatingState/inactive) and for performing any final cleanup tasks, such as executing completion blocks.

---

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)