Type Alias


Release private data or resources associated with the pattern.


typealias CGPatternReleaseInfoCallback = (UnsafeMutableRawPointer?) -> Void



A generic pointer to private data shared among your callback functions. This is the same pointer you supplied to init(info:bounds:matrix:xStep:yStep:tiling:isColored:callbacks:).


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

Creating Pattern Objects

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