CompositingFilters
CompositingFilters copied to clipboard
How did you find out those filters?
I am wondering where do you get the idea of passing string to compositing filter? and how to find the correct filter name
I was wondering the same thing, it doesn't seem to be documented anywhere.
Also why this are commented?
/*
"hueBlendMode",
"saturationBlendMode",
"colorBlendMode",
"luminosityBlendMode",
*/
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.
Thank you so much for sharing your knowledge 👍