<!--
{
  "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/shadowColor",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIBarAppearance(py)shadowColor"
  },
  "title" : "shadowColor"
}
-->

# shadowColor

The color to apply to the bar’s custom or default shadow.

```
@NSCopying var shadowColor: UIColor? { get set }
```

## Discussion

UIKit uses this property and the [`shadowImage`](/documentation/UIKit/UIBarAppearance/shadowImage) property to determine the shadow’s appearance. When [`shadowImage`](/documentation/UIKit/UIBarAppearance/shadowImage) is `nil`, the bar displays a default shadow tinted according to the value of this property. If this property is `nil` or contains the [`clear`](/documentation/UIKit/UIColor/clear) color, the bar displays no shadow.

If [`shadowImage`](/documentation/UIKit/UIBarAppearance/shadowImage) contains a template image, the bar uses the image for the shadow and tints it using the value in this property. If this property is `nil` or contains the [`clear`](/documentation/UIKit/UIColor/clear) color, the bar displays no shadow. However, if [`shadowImage`](/documentation/UIKit/UIBarAppearance/shadowImage) doesn’t contain a template image, the bar displays the image without applying the color in this property.

---

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)