Please refer https://developer.apple.com/documentation/quartzcore/calayer/1410748-compositingfilter wherein it says this property is supported on iOS 2.0+ SDK and at the bottom of the webpage under "Special Considerations" it mentions "This property is not supported on layers in iOS."
However, the code is working absolutely fine with this property on iOS.
Is it ok to use instance property "compositingFilter" of CALayer for iOS SDK?