Different methods for rendering a tiled pattern.


enum CGPatternTiling : Int32



case noDistortion

The pattern cell is not distorted when painted. The spacing between pattern cells may vary by as much as 1 device pixel.

case constantSpacingMinimalDistortion

Pattern cells are spaced consistently. The pattern cell may be distorted by as much as 1 device pixel when the pattern is painted.

case constantSpacing

Pattern cells are spaced consistently, as with CGPatternTiling.constantSpacingMinimalDistortion. The pattern cell may be distorted additionally to permit a more efficient implementation.

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