---
title: mask
framework: pencilkit
role: symbol
role_heading: Instance Property
path: pencilkit/pkstroke-swift.struct/mask-16kkz
---

# mask

The pretransform mask used to clip the rendering of the stroke.

## Declaration

```swift
var mask: NSBezierPath? { get set }
```

## See Also

### Getting the stroke properties

- [ink](pencilkit/pkstroke-swift.struct/ink.md)
- [mask](pencilkit/pkstroke-swift.struct/mask-8g6sx.md)
- [maskedPathRanges](pencilkit/pkstroke-swift.struct/maskedpathranges.md)
- [path](pencilkit/pkstroke-swift.struct/path.md)
- [renderBounds](pencilkit/pkstroke-swift.struct/renderbounds.md)
- [transform](pencilkit/pkstroke-swift.struct/transform.md)
- [randomSeed](pencilkit/pkstroke-swift.struct/randomseed.md)
