added operators to TableSectionBuilder

This commit is contained in:
Max Sokolov 2015-12-11 17:58:02 +03:00
parent b40306e771
commit 17c7475d2a
2 changed files with 10 additions and 0 deletions

View File

@ -102,4 +102,14 @@ public extension TableSectionBuilder {
if let tableView = tableView { rowBuilders.forEach { $0.registerCell(inTableView: tableView) } }
builders.appendContentsOf(rowBuilders)
}
}
public func +=(left: TableSectionBuilder, right: RowBuilder) {
left.appendRowBuilder(right)
}
public func +=(left: TableSectionBuilder, right: [RowBuilder]) {
left.appendRowBuilders(right)
}