Instance Method

filter(withName:)

Returns a filter object specified by name.

Required.

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.

See Also

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software