Instance Method


For each element in a graphics path, calls a custom applier function.


func apply(info: UnsafeMutableRawPointer?, function: CGPathApplierFunction)



A pointer to the user data that Core Graphics will pass to the function being applied, or NULL.


A pointer to the function to apply. See CGPathApplierFunction for more information.


For each element in the specified path, Core Graphics calls the applier function, which can examine (but not modify) the element.

See Also

Applying a Function to the Elements of a Path

typealias CGPathApplierFunction

Defines a callback function that can view an element in a graphics path.

struct CGPathElement

A data structure that provides information about a path element.

enum CGPathElementType

The type of element found in a path.