diff --git a/Tablet.podspec b/Tablet.podspec index 943a497..66dd4d3 100644 --- a/Tablet.podspec +++ b/Tablet.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'Tablet' - s.version = '0.4.0' + s.version = '0.4.1' s.homepage = 'https://github.com/maxsokolov/tablet' s.summary = 'Powerful type-safe tool for UITableView. Swift 2.0 is required.' diff --git a/Tablet.xcworkspace/xcuserdata/max.xcuserdatad/UserInterfaceState.xcuserstate b/Tablet.xcworkspace/xcuserdata/max.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 0000000..87b4626 Binary files /dev/null and b/Tablet.xcworkspace/xcuserdata/max.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/Tablet/TableDirector.swift b/Tablet/TableDirector.swift index e5985ab..7d075d8 100644 --- a/Tablet/TableDirector.swift +++ b/Tablet/TableDirector.swift @@ -192,33 +192,33 @@ public extension TableDirector { // MARK: Sections manipulation - public func appendSection(section: TableSectionBuilder) { - appendSections([section]) + public func append(section section: TableSectionBuilder) { + append(sections: [section]) } - public func appendSections(sections: [TableSectionBuilder]) { + public func append(sections sections: [TableSectionBuilder]) { sections.forEach { $0.willMoveToDirector(tableView) } self.sections.appendContentsOf(sections) } - public func clearSections() { + public func clear() { sections.removeAll() } } public func +=(left: TableDirector, right: RowBuilder) { - left.appendSection(TableSectionBuilder(rows: [right])) + left.append(section: TableSectionBuilder(rows: [right])) } public func +=(left: TableDirector, right: [RowBuilder]) { - left.appendSection(TableSectionBuilder(rows: right)) + left.append(section: TableSectionBuilder(rows: right)) } public func +=(left: TableDirector, right: TableSectionBuilder) { - left.appendSection(right) + left.append(section: right) } public func +=(left: TableDirector, right: [TableSectionBuilder]) { - left.appendSections(right) + left.append(sections: right) } \ No newline at end of file diff --git a/Tablet/TableRowBuilder.swift b/Tablet/TableRowBuilder.swift index 2c6cd52..e5a438d 100644 --- a/Tablet/TableRowBuilder.swift +++ b/Tablet/TableRowBuilder.swift @@ -173,7 +173,7 @@ public extension TableRowBuilder { // MARK: Items manipulation - public func appendItems(items: [I]) { + public func append(items items: [I]) { self.items.appendContentsOf(items) } @@ -183,9 +183,9 @@ public extension TableRowBuilder { } public func +=(left: TableRowBuilder, right: I) { - left.appendItems([right]) + left.append(items: [right]) } public func +=(left: TableRowBuilder, right: [I]) { - left.appendItems(right) + left.append(items: right) } \ No newline at end of file diff --git a/Tablet/TableSectionBuilder.swift b/Tablet/TableSectionBuilder.swift index e93a137..30a532e 100644 --- a/Tablet/TableSectionBuilder.swift +++ b/Tablet/TableSectionBuilder.swift @@ -69,14 +69,14 @@ public class TableSectionBuilder { builders.removeAll() } - public func appendRow(row: RowBuilder) { - appendRows([row]) + public func append(row row: RowBuilder) { + append(rows: [row]) } - public func appendRows(rowBuilders: [RowBuilder]) { + public func append(rows rows: [RowBuilder]) { - if let tableView = tableView { rowBuilders.forEach { $0.registerCell(inTableView: tableView) } } - builders.appendContentsOf(rowBuilders) + if let tableView = tableView { rows.forEach { $0.registerCell(inTableView: tableView) } } + builders.appendContentsOf(rows) } // MARK: Internal @@ -102,9 +102,9 @@ public class TableSectionBuilder { } public func +=(left: TableSectionBuilder, right: RowBuilder) { - left.appendRow(right) + left.append(row: right) } public func +=(left: TableSectionBuilder, right: [RowBuilder]) { - left.appendRows(right) + left.append(rows: right) } \ No newline at end of file diff --git a/Tablet/Tablet.xcodeproj/xcuserdata/max.xcuserdatad/xcschemes/xcschememanagement.plist b/Tablet/Tablet.xcodeproj/xcuserdata/max.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 0000000..d54e643 --- /dev/null +++ b/Tablet/Tablet.xcodeproj/xcuserdata/max.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,19 @@ + + + + + SuppressBuildableAutocreation + + DAC2D6681C9D743D009E9C19 + + primary + + + DAC2D6721C9D743D009E9C19 + + primary + + + + +