---
title: "init(ink:width:)"
framework: pencilkit
role: symbol
role_heading: Initializer
path: "pencilkit/pkinkingtoolreference/init(ink:width:)"
---

# init(ink:width:)

Create an inking tool with the specified ink and width.

## Declaration

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

## Parameters

- `ink`: The shape of the tool. You may specify doc://com.apple.pencilkit/documentation/PencilKit/PKInkTypeMarker, doc://com.apple.pencilkit/documentation/PencilKit/PKInkTypePen, or doc://com.apple.pencilkit/documentation/PencilKit/PKInkTypePencil.
- `width`: The width of a line drawn with the tool.

## See Also

### Creating an inking tool

- [init(inkType:color:width:)](pencilkit/pkinkingtoolreference/init(inktype:color:width:).md)
- [init(inkType:color:)](pencilkit/pkinkingtoolreference/init(inktype:color:).md)
