setTitleShadowColor(_:for:)
Sets the color of the title shadow to use for the specified state.
Declaration
func setTitleShadowColor(_ color: UIColor?, for state: UIControl.State)Parameters
- color:
The color of the title shadow to use for the specified state.
- state:
The state that uses the specified color. The possible values are described in State Swift.struct.
Discussion
In general, if a property is not specified for a state, the default is to use the normal value. If the normal value is not set, then the property defaults to a system value. Therefore, at a minimum, you should set the value for the normal state.