A structure that holds a version and two callback functions for drawing a custom pattern.
- iOS 2.0+
- macOS 10.1+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
- Core Graphics
You supply a
CGPattern structure to the function
init(info: to create a data provider for direct access. The functions specified by the
CGPattern structure are responsible for drawing the pattern and for handling the pattern’s memory management.