Contents

init(_:color:width:)

Creates an ink tool object with the specified color and line width values.

Declaration

init(_ inkType: PKInkingTool.InkType, color: NSColor = NSColor.black, width: CGFloat? = nil)

Parameters

  • inkType:

    The shape of the tool, which can be Marker, Pen, or Pencil.

  • color:

    The color to apply to drawn lines.

  • width:

    The base width to apply to any drawn lines. The value in the inkType parameter and input from Apple Pencil affects the final width.

See Also

Creating an inking tool