fix row item generic
This commit is contained in:
parent
c27a386807
commit
44c1a861d8
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -39,6 +39,7 @@ class MainController: UIViewController {
|
|||
let cellItem3 = RowItem<String, StoryboardImageTableViewCell>(item: "3")
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
let b = TableDynamicRowBuilder(items: [cellItem, cellItem2, cellItem3])
|
||||
|
|
|
|||
Loading…
Reference in New Issue