From 44c1a861d89a3a9dcc0025b509b7cf0c11f57dd2 Mon Sep 17 00:00:00 2001 From: Max Sokolov Date: Wed, 8 Jun 2016 02:08:43 +0300 Subject: [PATCH] fix row item generic --- Tablet/TableDynamicRowBuilder.swift | 2 +- .../Classes/Presentation/Controllers/MainController.swift | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Tablet/TableDynamicRowBuilder.swift b/Tablet/TableDynamicRowBuilder.swift index 63b9daa..4f1e238 100644 --- a/Tablet/TableDynamicRowBuilder.swift +++ b/Tablet/TableDynamicRowBuilder.swift @@ -28,7 +28,7 @@ public protocol RowItemable { func configure(cell: UITableViewCell) } -public class RowItem: RowItemable { +public class RowItem: RowItemable { public let item: DataType diff --git a/TabletDemo/Classes/Presentation/Controllers/MainController.swift b/TabletDemo/Classes/Presentation/Controllers/MainController.swift index 0a4da70..6b23bfa 100644 --- a/TabletDemo/Classes/Presentation/Controllers/MainController.swift +++ b/TabletDemo/Classes/Presentation/Controllers/MainController.swift @@ -39,6 +39,7 @@ class MainController: UIViewController { let cellItem3 = RowItem(item: "3") + let b = TableDynamicRowBuilder(items: [cellItem, cellItem2, cellItem3])