---
title: shadowImage
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uibarappearance/shadowimage
---

# shadowImage

The image to use for the bar’s shadow.

## Declaration

```swift
var shadowImage: UIImage? { get set }
```

## Discussion

Discussion UIKit uses this property and the shadowColor property to determine the shadow’s appearance. When this property is nil, the bar displays a default shadow tinted according to the value in the shadowColor property. If shadowColor is nil or contains the clear color, the bar displays no shadow. If this property contains a template image, the bar uses the image for the shadow and tints it using the value in shadowColor. If shadowColor is nil or contains the clear color, the bar displays no shadow. However, if this property doesn’t contain a template image, the bar displays the image without applying the shadow color.

## See Also

### Configuring the shadow appearance

- [shadowColor](uikit/uibarappearance/shadowcolor.md)
