SKCropNode
works by removing every thing from its vulnerable nodes that are not covered by the original image. This is one type of disguise, the other is to invert this logic and reveal everything that is not covered by the original image.
SKCropNode
has a logical switch to set this state, called invertMask
, reasonably enough.
What is annoying is that it looks like private .
If you put aside all the approval processes of the application store, the dangers of private APIs, etc. and accept that this is something interesting for testing ... and this is only for testing purposes ...
How to set this invertMask
to true using Swift?
UPDATE:
There are other answers to tangentially similar questions:
How to access iOS private APIs in Swift?
However, this does not help me, and is not a direct answer to how to do this to install a boolean, this particular one, in this particular Swift question.
I asked a question about Selectors here and accepted an answer that showed me that I did not need to use or understand Selectors in order to achieve this goal: What is a selector in SKAction: execute (_: onTarget :)
But it seems that for the exact syntax needed to use the selector, you might need to set this boolean to Swift. I do not know what it is or how to do it.
But any other way to install this boolean (in Swift) is certainly fine.
source share