add safeClear for TableDirector
This commit is contained in:
parent
78f82e51d2
commit
3fe60ef94a
|
|
@ -111,4 +111,9 @@ public extension TableDirector {
|
|||
return replace(withSection: TableSection(rows: rows))
|
||||
}
|
||||
|
||||
/// Clear table view and reload it within empty section
|
||||
func safeClear() {
|
||||
clear().append(section: TableSection()).reload()
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue