---
title: CGPatternReleaseInfoCallback
framework: coregraphics
role: symbol
role_heading: Type Alias
path: coregraphics/cgpatternreleaseinfocallback
---

# CGPatternReleaseInfoCallback

Release private data or resources associated with the pattern.

## Declaration

```swift
typealias CGPatternReleaseInfoCallback = (UnsafeMutableRawPointer?) -> Void
```

## Parameters

- `info`: A generic pointer to private data shared among your callback functions. This is the same pointer you supplied to doc://com.apple.coregraphics/documentation/CoreGraphics/CGPattern/init(info:bounds:matrix:xStep:yStep:tiling:isColored:callbacks:).

## Discussion

Discussion Quartz calls your release function when it frees your pattern object. To learn how to associate your release function with a Quartz pattern, see init(info:bounds:matrix:xStep:yStep:tiling:isColored:callbacks:) and CGPatternCallbacks.

## See Also

### Callbacks

- [CGPatternCallbacks](coregraphics/cgpatterncallbacks.md)
- [CGPatternDrawPatternCallback](coregraphics/cgpatterndrawpatterncallback.md)
