Using SpriteKit in Swift, I have this code inside my GameScene (a SKScene):
//Init function let self.itemsLayer = SKNode() let grayNode = SKEffectNode() let grayFilter = CIFilter(name: "CIPhotoEffectNoir") grayFilter.setDefaults() grayNode.filter = grayFilter grayNode.addChild(self.itemsLayer) self.addChild(grayNode)
It is supposed to render the items I display into the itemsLayer in gray color (later in the code I add some SKSpriteNode with textures/images into the itemsLayer).
On iOS8, it works perfectly: I can see all my items being in gray.
But on iOS7, the SKSpriteNodes (my items on itemsLayer) are not displayed (as if hidden).
CIPhotoEffectNoir does exist in iOS7 according to the documentation and to
Edit : When I comment the filter lines, my itemsLayer is still hidden. When I convert
let grayNode to a
SKNode, it works back (but no effect is applied of course). The problem seems to come from the grayNode being a