---
title: "titleShadowColor(for:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uibutton/titleshadowcolor(for:)"
---

# titleShadowColor(for:)

Returns the shadow color of the title used for a state.

## Declaration

```swift
func titleShadowColor(for state: UIControl.State) -> UIColor?
```

## Parameters

- `state`: The state that uses the title shadow color. The possible values are described in doc://com.apple.uikit/documentation/UIKit/UIControl/State-swift.struct.

## Return Value

Return Value The color of the title’s shadow for the specified state.

## See Also

### Managing the title

- [titleLabel](uikit/uibutton/titlelabel.md)
- [title(for:)](uikit/uibutton/title(for:).md)
- [setTitle(_:for:)](uikit/uibutton/settitle(_:for:).md)
- [attributedTitle(for:)](uikit/uibutton/attributedtitle(for:).md)
- [setAttributedTitle(_:for:)](uikit/uibutton/setattributedtitle(_:for:).md)
- [titleColor(for:)](uikit/uibutton/titlecolor(for:).md)
- [setTitleColor(_:for:)](uikit/uibutton/settitlecolor(_:for:).md)
- [setTitleShadowColor(_:for:)](uikit/uibutton/settitleshadowcolor(_:for:).md)
