added operators to TableRowBuilder
This commit is contained in:
parent
558d2bccf3
commit
b40306e771
|
|
@ -162,3 +162,13 @@ public extension TableRowBuilder {
|
|||
items.removeAll()
|
||||
}
|
||||
}
|
||||
|
||||
public func +=<I, C>(left: TableRowBuilder<I, C>, right: I) {
|
||||
|
||||
left.appendItems([right])
|
||||
}
|
||||
|
||||
public func +=<I, C>(left: TableRowBuilder<I, C>, right: [I]) {
|
||||
|
||||
left.appendItems(right)
|
||||
}
|
||||
Binary file not shown.
|
|
@ -32,6 +32,7 @@ class ViewController: UIViewController {
|
|||
print("end display: \(data.indexPath)")
|
||||
}
|
||||
|
||||
|
||||
let configurableRowBuilder = TableConfigurableRowBuilder<String, ConfigurableTableViewCell>(items: ["5", "6", "7", "8"], estimatedRowHeight: 300)
|
||||
.action(.click) { data -> Void in
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue