# `GSBackgroundLayer.foreground`

*Instance Property*

The layer whose background content this layer represents.

## Declaration

```swift
unowned(unsafe) var foreground: GSLayer! { get set }
```

```objc
@property (nonatomic, unsafe_unretained) GSLayer * foreground;
```

```python
foreground() -> GSLayer
setForeground_(foreground: GSLayer)
```

## Discussion

The foreground layer owns its background layer. Do not retain a background layer beyond the lifetime of its foreground layer.

