fix row item generic

This commit is contained in:
Max Sokolov 2016-06-08 02:08:43 +03:00
parent c27a386807
commit 44c1a861d8
2 changed files with 2 additions and 1 deletions

View File

@ -28,7 +28,7 @@ public protocol RowItemable {
func configure(cell: UITableViewCell)
}
public class RowItem<DataType, CellType: ConfigurableCell where CellType.T == DataType>: RowItemable {
public class RowItem<DataType, CellType: ConfigurableCell where CellType.T == DataType, CellType: UITableViewCell>: RowItemable {
public let item: DataType

View File

@ -39,6 +39,7 @@ class MainController: UIViewController {
let cellItem3 = RowItem<String, StoryboardImageTableViewCell>(item: "3")
let b = TableDynamicRowBuilder(items: [cellItem, cellItem2, cellItem3])