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

# shadowImage

The shadow image to be used for the navigation bar.

## Declaration

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

## Discussion

Discussion The default value is nil, which corresponds to the default shadow image. When non-nil, this property represents a custom shadow image to show instead of the default. To show a custom shadow image, you must also set a custom background image with the setBackgroundImage(_:for:) method. If the default background image is used, then the default shadow image is used regardless of the value of this property.
