# `GSLayer.hasBackgroundImage`

*Instance Property*

Whether a background image is attached directly to the layer.

## Declaration

```swift
var hasBackgroundImage: Bool { get }
```

```objc
@property (nonatomic, readonly) BOOL hasBackgroundImage;
```

```python
hasBackgroundImage() -> bool
```

## See Also

### Background Image

- [`GSBackgroundImage`](/Core/GlyphsCore/GSBackgroundImage) — A reference image attached directly to a layer.
- [`GSLayer.backgroundImage`](/Core/GlyphsCore/GSLayer/backgroundImage) — A reference image attached directly to the layer.
- [`GSLayer addBackgroundImageWithURL:`](/Core/GlyphsCore/GSLayer/addBackgroundImageWithURL:) — Adds an image from a file URL.

