---
title: PKStrokeRenderStateReference
framework: PencilKit
role: symbol
role_heading: Class
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+, macOS 27.0+, visionOS 27.0+]
path: pencilkit/pkstrokerenderstatereference
---

# PKStrokeRenderStateReference

An object that captures the render-time state of a stroke, such as grain texture position.

## Declaration

```swift
class PKStrokeRenderStateReference
```

## Overview

Overview PKStrokeRenderState is the Objective-C representation of a stroke’s rendering context. It conforms to NSCopying and NSSecureCoding for archiving. In Swift, use the equivalent value type PKStroke.RenderState instead.

## Topics

### Getting the render state

- [grainOffset](pencilkit/pkstrokerenderstatereference/grainoffset.md)

### Using Swift types

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

### Initializers

- [init(_:)](pencilkit/pkstrokerenderstatereference/init(_:).md)
- [init(coder:)](pencilkit/pkstrokerenderstatereference/init(coder:).md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)
