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

# grainOffset

The pre-transform position of the grain texture for strokes with a backing grain texture such as crayon.

## Declaration

```swift
var grainOffset: CGPoint { get set }
```
