Contents

depthBlurEffectFilter(forImageURL:options:)

Create a Cifilter Swift.class instance for the supplied image URL that can be used to apply a depth blur effect.

Declaration

func depthBlurEffectFilter(forImageURL url: URL, options: [AnyHashable : Any]? = nil) -> CIFilter?

Parameters

  • url:

    The URL location of the image to apply the depth blur effect to.

  • options:

    Reserved for future use.

Discussion

The receiver context is used to render the image in order to get the facial landmarks used to create the effect.

See Also

Creating Depth Blur Filters