# `GSDrawSlice.referenceRect`

*Instance Property*

The reference rect used to fill gradients and apply other effects that require bounds to be unaffected by masks, strokes, and other externalities.

## Declaration

```swift
var referenceRect: CGRect { get set }
```

```objc
@property (nonatomic, assign) CGRect referenceRect;
```

```python
referenceRect() -> CGRect
setReferenceRect_(referenceRect: CGRect)
```

## Discussion

The getter pre-applies the transform of the slice.

`CGRectNull` if there is no concrete reference rect for the slice.

