I want to use the native filters for my app, the function works but I want to avoid methods that will be removed from the documentation. I search over the whole internet and
EAGLContext is part of OpenGL, which is deprecated. You should switch to Metal at this stage.