<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 10.15.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PencilKit",
  "identifier" : "/documentation/PencilKit/PKInkingToolReference/init(ink:width:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "PencilKit"
    ],
    "preciseIdentifier" : "c:objc(cs)PKInkingTool(im)initWithInk:width:"
  },
  "title" : "init(ink:width:)"
}
-->

# init(ink:width:)

Create an inking tool with the specified ink and width.

```
convenience init(ink: PKInk, width: CGFloat)
```

## Parameters

`ink`

The shape of the tool. You may specify [`PKInkTypeMarker`](/documentation/PencilKit/PKInkTypeMarker), [`PKInkTypePen`](/documentation/PencilKit/PKInkTypePen), or [`PKInkTypePencil`](/documentation/PencilKit/PKInkTypePencil).

`width`

The width of a line drawn with the tool.

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)