fix tests

This commit is contained in:
Max Sokolov 2016-08-20 13:03:31 +03:00
parent 7438856134
commit 0c527fd47f
1 changed files with 5 additions and 5 deletions

View File

@ -42,21 +42,21 @@ struct TestTableViewCellOptions {
static let CellAction: String = "CellAction"
static let CellActionUserInfoKey: String = "CellActionUserInfoKey"
static let CellActionUserInfoValue: String = "CellActionUserInfoValue"
static let EstimatedHeight: Float = 255
static let EstimatedHeight: CGFloat = 255
}
class TestTableViewCell: UITableViewCell, ConfigurableCell {
typealias T = TestData
static var estimatedHeight: CGFloat? {
return TestTableViewCellOptions.EstimatedHeight
}
static func reusableIdentifier() -> String {
return TestTableViewCellOptions.ReusableIdentifier
}
static func estimatedHeight() -> Float {
return TestTableViewCellOptions.EstimatedHeight
}
func configure(with item: T) {
textLabel?.text = item.title
}