filter(withName:)
Returns a filter object specified by name.
Declaration
func filter(withName name: String) -> CIFilter?Parameters
- name:
The name of the requested custom filter.
Return Value
A CIFilter object implementing the custom filter.
Discussion
Core Image calls this method when a filter is requested by name using the CIFilter class method init(name:) method (or related methods). Your implementation of this method should provide a new instance of the CIFilter subclass for your custom filter.