# `GlyphsReporter drawBackgroundInPreviewLayer:options:`

*Instance Method*

Is called to asked the plugin to draw anything it likes in behind the normal outlines in the Preview View

## Declaration

```swift
optional func drawBackground(inPreviewLayer layer: GSLayer!, options: [AnyHashable : Any]! = [:])
```

```objc
- (void) drawBackgroundInPreviewLayer:(GSLayer *) layer options:(NSDictionary *) options;
```

```python
drawBackgroundInPreviewLayer_options_(layer: GSLayer, options: dict)
```

## Parameters

- `layer` — The Layer to draw
- `options` — A dictionary with some info about the environment (currently “Scale”)

## Discussion

The scaling and positioning is taken care of. That means you need to draw unscaled and the scaling will be done automatically. If you need to draw something with absolute size, you need to counter scale it.

