CompositingFilters icon indicating copy to clipboard operation
CompositingFilters copied to clipboard

How did you find out those filters?

Open linlinyao1 opened this issue 5 years ago • 3 comments

I am wondering where do you get the idea of passing string to compositing filter? and how to find the correct filter name

linlinyao1 avatar Nov 11 '18 09:11 linlinyao1

I was wondering the same thing, it doesn't seem to be documented anywhere.

Also why this are commented?

        /*
        "hueBlendMode",
        "saturationBlendMode",
        "colorBlendMode",
        "luminosityBlendMode",
         */

oscarvgg avatar Jan 17 '20 09:01 oscarvgg

I've found a PDF somewhere where it was described. Also have a look here: https://academy.realm.io/posts/tryswift-tim-oliver-advanced-graphics-with-core-animation/ Under »Blend Modes with CALayer«. This project also makes use of the feature. https://github.com/TimOliver/TOGlintyStringView Since iOS 12(?) you also don't need to use allowsGroupBlending anymore.

As there were samples e.g for »screenBlendMode« I just tried different strings based on other common blend modes (you could for example look in Sketch). I commented those out because I figured they might work but didn't in the end. Had hopes though, that they may become supported at some point.

arthurschiller avatar Jan 17 '20 11:01 arthurschiller

Thank you so much for sharing your knowledge 👍

oscarvgg avatar Jan 20 '20 22:01 oscarvgg