Instance Method

mutableCopy(using:)

Creates a mutable copy of a graphics path transformed by a transformation matrix.

Declaration

func mutableCopy(using transform: UnsafePointer<CGAffineTransform>?) -> CGMutablePath?

Parameters

transform

A pointer to an affine transformation matrix, or NULL if no transformation is needed. If specified, Core Graphics applies the transformation to all elements of the new path.

Return Value

A new, mutable copy of the specified path transformed by the transform parameter. You are responsible for releasing this object.

See Also

Copying a Graphics Path

func copy() -> CGPath?

Creates an immutable copy of a graphics path.

func copy(using: UnsafePointer<CGAffineTransform>?) -> CGPath?

Creates an immutable copy of a graphics path transformed by a transformation matrix.

func copy(dashingWithPhase: CGFloat, lengths: [CGFloat], transform: CGAffineTransform) -> CGPath

Returns a new path equivalent to the results of drawing the path with a dashed stroke.

func mutableCopy() -> CGMutablePath?

Creates a mutable copy of an existing graphics path.

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