<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIBarAppearance/shadowImage",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIBarAppearance(py)shadowImage"
  },
  "title" : "shadowImage"
}
-->

# shadowImage

The image to use for the bar’s shadow.

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

## Discussion

UIKit uses this property and the [`shadowColor`](/documentation/UIKit/UIBarAppearance/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`](/documentation/UIKit/UIBarAppearance/shadowColor) property. If [`shadowColor`](/documentation/UIKit/UIBarAppearance/shadowColor) is `nil` or contains the [`clear`](/documentation/UIKit/UIColor/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`](/documentation/UIKit/UIBarAppearance/shadowColor). If [`shadowColor`](/documentation/UIKit/UIBarAppearance/shadowColor) is `nil` or contains the [`clear`](/documentation/UIKit/UIColor/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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)