---
title: action
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uidynamicbehavior/action
---

# action

The block you want to execute during dynamic animation.

## Declaration

```swift
var action: (() -> Void)? { get set }
```

## Discussion

Discussion The dynamic animator calls the action block on every animation step.

## See Also

### Related Documentation

- [willMove(to:)](uikit/uidynamicbehavior/willmove(to:).md)

### Configuring a dynamic behavior

- [addChildBehavior(_:)](uikit/uidynamicbehavior/addchildbehavior(_:).md)
- [childBehaviors](uikit/uidynamicbehavior/childbehaviors.md)
- [removeChildBehavior(_:)](uikit/uidynamicbehavior/removechildbehavior(_:).md)
