---
title: shading
framework: swiftui
role: symbol
role_heading: Instance Property
path: swiftui/graphicscontext/resolvedimage/shading
---

# shading

An optional shading to fill the image with.

## Declaration

```swift
var shading: GraphicsContext.Shading?
```

## Discussion

Discussion The value of this property defaults to foreground for template images, and to nil otherwise.

## See Also

### Getting the image properties

- [size](swiftui/graphicscontext/resolvedimage/size.md)
- [baseline](swiftui/graphicscontext/resolvedimage/baseline.md)
