---
title: PKLassoTool
framework: pencilkit
role: symbol
role_heading: Structure
path: pencilkit/pklassotool-swift.struct
---

# PKLassoTool

A tool for selecting stroked lines and shapes in a canvas view.

## Declaration

```swift
struct PKLassoTool
```

## Overview

Overview A PKLassoTool object supports the selection of content on a PKCanvasView. When active, the canvas uses incoming touch events to determine what content to add to the selection. Create a lasso tool programmatically or display a PKToolPicker object from which the user selects the tool. Assign the resulting object to the tool property of your PKCanvasView object. The canvas uses any subsequent touch sequences to select content on the canvas.

## Topics

### Creating a lasso tool

- [init()](pencilkit/pklassotool-swift.struct/init().md)

### Using reference types

- [PKLassoToolReference](pencilkit/pklassotoolreference.md)

## Relationships

### Conforms To

- [Copyable](swift/copyable.md)
- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [PKTool](pencilkit/pktool-swift.protocol.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Tools

- [Configuring the PencilKit tool picker](pencilkit/configuring-the-pencilkit-tool-picker.md)
- [PKToolPicker](pencilkit/pktoolpicker.md)
- [PKInkingTool](pencilkit/pkinkingtool-swift.struct.md)
- [PKEraserTool](pencilkit/pkerasertool-swift.struct.md)
- [PKTool](pencilkit/pktool-swift.protocol.md)
