I'm converting my iOS Project from Swift 2.2 to Swift 3. Everything was going well, but when I tried to set image
to an instance of ASImageNode
, I got an error that said: "Cannot assign to property: 'image' is a get-only property".
Here is my code:
let imageNode = ASImageNode()
imageNode.image = myImage
However, it worked in Xcode 7 + Swift 2.2.
I checked the definition of the image
by 'cmd+click', but Xcode brought me to the -(CIImage *)image;
in CIImageAccumulator.h
instead of image
in ASImageNode
.
I could access other class and property in AsyncDisplayKit
properly but ASImageNode.image
. If I commented all lines with accessing ASImageNode.image
, my project was built successfully.