Contents

init(ink:path:transform:mask:)

Creates a stroke with the line properties, path, transform, and mask that you specify.

Declaration

init(ink: PKInk, path: PKStrokePath, transform: CGAffineTransform = .identity, mask: UIBezierPath? = nil)

Parameters

  • ink:

    The Pkink Swift.struct the framework uses to render this stroke.

  • path:

    The B-spline path that describes this stroke.

  • transform:

    The Cgaffinetransform to apply to this stroke.

  • mask:

    The pretransform mask the framework uses to clip the rendering of the stroke.

See Also

Creating a stroke object