liuzhiyi1992/ZYThumbnailTableView

Cannot convert value of type '() -> ()' to specified type 'UpdateTableViewCellBlock' (aka '(UITableViewCell, IndexPath) -> ()')

Ged2323 opened this issue · 1 comments

Hi I tried running this with swift 3.1 and I'm getting this issue on this func.

open lazy var updateTableViewCellBlock: UpdateTableViewCellBlock = {
return {
print("ERROR: You must configure the updateTableViewCellBlock")
}
}()

Cannot convert value of type '() -> ()' to specified type 'UpdateTableViewCellBlock' (aka '(UITableViewCell, IndexPath) -> ()')

Thanks in advance for your help.

Yours Sincerely
Gerard Grundy

Just replace it with

open var updateTableViewCellBlock: UpdateTableViewCellBlock!