Open danielbeicht opened 6 years ago
Hi,
even with your example I get following error message for this line: menu.cellTapHandler = { [weak self] (indexPath: NSIndexPath) -> Void in
Message: Cannot assign value of type '(NSIndexPath) -> Void' to type '((IndexPath) -> Void)?'
I solved it Changing NSIndexPath to IndexPath on [weak self] (indexPath: NSIndexPath) -> Void in inside cellTapHandler I think that is a swift translation problem.
NSIndexPath
IndexPath
[weak self] (indexPath: NSIndexPath) -> Void in
cellTapHandler
Hi,
even with your example I get following error message for this line: menu.cellTapHandler = { [weak self] (indexPath: NSIndexPath) -> Void in
Message: Cannot assign value of type '(NSIndexPath) -> Void' to type '((IndexPath) -> Void)?'