---
title: PKLassoToolReference
framework: pencilkit
role: symbol
role_heading: Class
path: pencilkit/pklassotoolreference
---

# PKLassoToolReference

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

## Declaration

```swift
class PKLassoToolReference
```

## Overview

Overview A PKLassoToolReference 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/pklassotoolreference/init().md)

## Relationships

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
