---
title: CGPathApplierFunction
framework: coregraphics
role: symbol
role_heading: Type Alias
path: coregraphics/cgpathapplierfunction
---

# CGPathApplierFunction

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

## Declaration

```swift
typealias CGPathApplierFunction = (UnsafeMutableRawPointer?, UnsafePointer<CGPathElement>) -> Void
```

## Discussion

Discussion See also apply(info:function:).

## See Also

### Applying a Function to the Elements of a Path

- [apply(info:function:)](coregraphics/cgpath/apply(info:function:).md)
- [CGPathElement](coregraphics/cgpathelement.md)
- [CGPathElementType](coregraphics/cgpathelementtype.md)
