---
title: defaultRowAnimation
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uitableviewdiffabledatasourcereference/defaultrowanimation
---

# defaultRowAnimation

The default type of animation to use when inserting or deleting rows.

## Declaration

```swift
var defaultRowAnimation: UITableView.RowAnimation { get set }
```

## Discussion

Discussion The default value of this property is UITableView.RowAnimation.automatic. If you set the value of this property, the new value becomes the default row animation for the next update that uses applySnapshot(_:animatingDifferences:) or applySnapshot(_:animatingDifferences:completion:).

## See Also

### Updating data

- [snapshot()](uikit/uitableviewdiffabledatasourcereference/snapshot().md)
- [applySnapshot(_:animatingDifferences:)](uikit/uitableviewdiffabledatasourcereference/applysnapshot(_:animatingdifferences:).md)
- [applySnapshot(_:animatingDifferences:completion:)](uikit/uitableviewdiffabledatasourcereference/applysnapshot(_:animatingdifferences:completion:).md)
- [applySnapshot(usingReloadData:)](uikit/uitableviewdiffabledatasourcereference/applysnapshot(usingreloaddata:).md)
- [applySnapshot(usingReloadData:completion:)](uikit/uitableviewdiffabledatasourcereference/applysnapshot(usingreloaddata:completion:).md)
