Add `func append(contentsOf elements: [RowRepresentation])`

This commit is contained in:
Akira 2022-03-13 17:52:25 +09:00
parent 63de77ebef
commit 9ba6b54bd2
1 changed files with 6 additions and 0 deletions

View File

@ -79,6 +79,12 @@ open class Section {
return self
}
@discardableResult
open func append(contentsOf elements: [RowRepresentation]) -> Self {
rows.append(contentsOf: elements)
return self
}
@discardableResult
open func didSelect(_ action: @escaping (UITableView, IndexPath) -> Void) -> Self {
selectedAction = action