---
title: "init(ink:width:)"
framework: pencilkit
role: symbol
role_heading: Initializer
path: "pencilkit/pkinkingtool-swift.struct/init(ink:width:)"
---

# init(ink:width:)

Create an inking tool with the specified ink and width.

## Declaration

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

## Parameters

- `ink`: The shape of the tool, which can be 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(_:color:width:)](pencilkit/pkinkingtool-swift.struct/init(_:color:width:)-2l7v.md)
- [init(_:color:width:)](pencilkit/pkinkingtool-swift.struct/init(_:color:width:)-4i3ft.md)
