Skip to content

Commit fbf0a41

Browse files
author
GGsrvg
committed
table view update cell with automatic animation style
1 parent a6c2aa2 commit fbf0a41

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/ObservableField/Lists/Adapter/UITableViewAdapter.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ where ODS: ObservableDataSourceSubscribe,
153153

154154
open func insertCells(at indexPaths: [IndexPath]) {
155155
func action() {
156-
self.tableView?.insertRows(at: indexPaths, with: .top)
156+
self.tableView?.insertRows(at: indexPaths, with: .automatic)
157157
}
158158

159159
if self.isCollectingBatchUpdate {
@@ -167,7 +167,7 @@ where ODS: ObservableDataSourceSubscribe,
167167

168168
open func reloadCells(at indexPaths: [IndexPath]) {
169169
func action() {
170-
self.tableView?.reloadRows(at: indexPaths, with: .fade)
170+
self.tableView?.reloadRows(at: indexPaths, with: .automatic)
171171
}
172172

173173
if self.isCollectingBatchUpdate {
@@ -181,7 +181,7 @@ where ODS: ObservableDataSourceSubscribe,
181181

182182
open func deleteCells(at indexPaths: [IndexPath]) {
183183
func action() {
184-
self.tableView?.deleteRows(at: indexPaths, with: .top)
184+
self.tableView?.deleteRows(at: indexPaths, with: .automatic)
185185
}
186186

187187
if self.isCollectingBatchUpdate {

0 commit comments

Comments
 (0)