Fix crash when sort and filter change at the same time.

Fix edit table cell during reload
This commit is contained in:
relikd
2020-06-20 12:52:17 +02:00
parent 778f377e42
commit 26f6ea1a9a
3 changed files with 68 additions and 77 deletions

View File

@@ -1,24 +1,15 @@
import UIKit
protocol FilterPipelineDelegate: AnyObject {
/// Call `reloadData()` on main thread.
/// - Warning: This function may be called from a background thread.
/// Call `reloadData()`
func filterPipelineDidReset()
/// Call `safeDeleteRows()` on main thread.
/// - Warning: This function may be called from a background thread.
/// Call `safeDeleteRows()`
func filterPipeline(delete rows: [Int])
/// Call `safeInsertRow()` on main thread.
/// - Warning: This function may be called from a background thread.
/// Call `safeInsertRow()`
func filterPipeline(insert row: Int)
/// Call `safeReloadRow()` on main thread.
/// - Warning: This function may be called from a background thread.
/// Call `safeReloadRow()`
func filterPipeline(update row: Int)
/// Call `safeMoveRow()` on main thread.
/// - Warning: This function may be called from a background thread.
/// Call `safeMoveRow()`
func filterPipeline(move oldRow: Int, to newRow: Int)
}