Skip to content

Commit

Permalink
Remove of the animation for table view cells.
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegGordiichuk committed Mar 5, 2018
1 parent 17cdcf4 commit 23a1c2d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ class NonFungibleTokensViewController: UIViewController {
tableView.beginUpdates()
var insertIndexSet = IndexSet()
insertions.forEach { insertIndexSet.insert($0) }
tableView.insertSections(insertIndexSet, with: insertions.count == 1 ? .top : .automatic)
tableView.insertSections(insertIndexSet, with: insertions.count == 1 ? .top : .none)
var deleteIndexSet = IndexSet()
deletions.forEach { deleteIndexSet.insert($0) }
tableView.deleteSections(deleteIndexSet, with: .automatic)
tableView.deleteSections(deleteIndexSet, with: .none)
var updateIndexSet = IndexSet()
modifications.forEach { updateIndexSet.insert($0) }
tableView.reloadSections(updateIndexSet, with: .none)
Expand Down
4 changes: 2 additions & 2 deletions Trust/Tokens/ViewControllers/TokensViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,9 @@ class TokensViewController: UIViewController {
case .update(_, let deletions, let insertions, let modifications):
tableView.beginUpdates()
tableView.insertRows(at: insertions.map { IndexPath(row: $0, section: 0) },
with: .automatic)
with: .none)
tableView.deleteRows(at: deletions.map { IndexPath(row: $0, section: 0) },
with: .automatic)
with: .none)
for row in modifications {
let indexPath = IndexPath(row: row, section: 0)
let model = strongSelf.viewModel.cellViewModel(for: indexPath)
Expand Down

0 comments on commit 23a1c2d

Please sign in to comment.