add safeClear for TableDirector

This commit is contained in:
Ivan Smolin 2018-03-27 16:42:45 +03:00
parent 78f82e51d2
commit 3fe60ef94a
1 changed files with 5 additions and 0 deletions

View File

@ -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()
}
}