---
title: renderState
framework: pencilkit
role: symbol
role_heading: Instance Property
path: pencilkit/pkstroke-swift.struct/renderstate-swift.property
---

# renderState

Contains information about the render details (such as particle positioning) of this stroke, which can be useful when manipulating the model in certain ways. For example, this may be set on substrokes returned by substroke(range:). nil uses default rendering.

## Declaration

```swift
var renderState: PKStroke.RenderState? { get set }
```

## Mentioned in

Controlling stroke rendering for animation and editing

## See Also

### Configuring rendering

- [renderGroupID](pencilkit/pkstroke-swift.struct/rendergroupid.md)
- [PKStroke.RenderState](pencilkit/pkstroke-swift.struct/renderstate-swift.struct.md)
