---
title: startAnimation()
framework: uikit
role: symbol
role_heading: Instance Method
path: uikit/uiviewanimating/startanimation()
---

# startAnimation()

Starts the animation from its current position.

## Declaration

```swift
func startAnimation()
```

## Discussion

Discussion Call this method to start the animations or to resume the animation after they were paused. This method sets the state of the animator to UIViewAnimatingState.active, if it isn’t already there. It’s a programmer error to call this method while the state of the animator is set to UIViewAnimatingState.stopped. When implementing a custom animator, use this method to transition your animator to the active state and to run the animations. Run your animations from the progress point in the fractionComplete property. Update the state and isRunning properties, as well as any other relevant properties of your custom animator object.

## See Also

### Starting and stopping the animations

- [startAnimation(afterDelay:)](uikit/uiviewanimating/startanimation(afterdelay:).md)
- [pauseAnimation()](uikit/uiviewanimating/pauseanimation().md)
- [stopAnimation(_:)](uikit/uiviewanimating/stopanimation(_:).md)
- [finishAnimation(at:)](uikit/uiviewanimating/finishanimation(at:).md)
