Contents

shadowColor

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

Declaration

@NSCopying var shadowColor: UIColor? { get set }

Discussion

UIKit uses this property and the shadowImage property to determine the shadow’s appearance. When 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 color, the bar displays no shadow.

If 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 color, the bar displays no shadow. However, if shadowImage doesn’t contain a template image, the bar displays the image without applying the color in this property.

See Also

Configuring the shadow appearance