diff --git a/Sources/TableRowBuilder.swift b/Sources/TableRowBuilder.swift index 4b37799..23158c2 100644 --- a/Sources/TableRowBuilder.swift +++ b/Sources/TableRowBuilder.swift @@ -22,7 +22,7 @@ import UIKit public protocol RowBuilder { - func rowItems() -> [Row]? + func rows() -> [Row]? } public class TableRowBuilder: RowBuilder { @@ -42,7 +42,7 @@ public class TableRowBuilder [Row]? { + public func rows() -> [Row]? { return items?.map { TableRow(item: $0, actions: actions) } } } @@ -51,7 +51,7 @@ public extension TableSection { public func append(builder builder: RowBuilder) { - if let rows = builder.rowItems() { + if let rows = builder.rows() { append(rows: rows) } }