ZYThumbnailTableView icon indicating copy to clipboard operation
ZYThumbnailTableView copied to clipboard

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

Open Ged2323 opened this issue 7 years ago • 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

Ged2323 avatar Apr 07 '17 08:04 Ged2323

Just replace it with

open var updateTableViewCellBlock: UpdateTableViewCellBlock!

imclean avatar Apr 11 '17 15:04 imclean