CGPatternCallbacks
A structure that holds a version and two callback functions for drawing a custom pattern.
Declaration
struct CGPatternCallbacksOverview
You supply a CGPatternCallbacks structure to the function init(info:bounds:matrix:xStep:yStep:tiling:isColored:callbacks:) to create a data provider for direct access. The functions specified by the CGPatternCallbacks structure are responsible for drawing the pattern and for handling the pattern’s memory management.