<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 11.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PencilKit",
  "identifier" : "/documentation/PencilKit/PKLassoTool-swift.struct",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "PencilKit"
    ],
    "preciseIdentifier" : "s:9PencilKit11PKLassoToolV"
  },
  "title" : "PKLassoTool"
}
-->

# PKLassoTool

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

```
struct PKLassoTool
```

## Overview

A [`PKLassoTool`](/documentation/PencilKit/PKLassoTool-swift.struct) object supports the selection of content on a [`PKCanvasView`](/documentation/PencilKit/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`](/documentation/PencilKit/PKToolPicker) object from which the user selects the tool. Assign the resulting object to the [`tool`](/documentation/PencilKit/PKCanvasView/tool-6str6) property of your [`PKCanvasView`](/documentation/PencilKit/PKCanvasView) object. The canvas uses any subsequent touch sequences to select content on the canvas.

## Topics

### Creating a lasso tool

[`init()`](/documentation/PencilKit/PKLassoTool-swift.struct/init())

Creates a lasso tool for selecting content on a canvas view.

### Comparing lasso tools

### Using reference types

[`PKLassoToolReference`](/documentation/PencilKit/PKLassoToolReference)

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

## Relationships

### Conforms To

[`Copyable`](/documentation/Swift/Copyable)

[`Equatable`](/documentation/Swift/Equatable)

[`Sendable`](/documentation/Swift/Sendable)

[`Escapable`](/documentation/Swift/Escapable)

[`PKTool-swift.protocol`](/documentation/PencilKit/PKTool-swift.protocol)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

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)