What can be the solution of a deprecated of “EAGLContext”?
问题 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 no solution. I search over the whole internet and i haven't found any solution at my problem. public func applyFilterTo(image: UIImage, filterEffect: Filter) -> UIImage? { guard let cgImage = image.cgImage, let openGLContext = EAGLContext(api: .openGLES3) else { return nil } let context = CIContext(eaglContext: