titleTextAttributes(for:)
Returns the text attributes of the title for a given control state.
Declaration
func titleTextAttributes(for state: UIControl.State) -> [NSAttributedString.Key : Any]?Parameters
- state:
A control state.
Return Value
The text attributes of the title for state.
Discussion
For more details, see setTitleTextAttributes(_:for:)
See Also
Customizing appearance
selectedSegmentTintColorbackgroundImage(for:barMetrics:)setBackgroundImage(_:for:barMetrics:)contentPositionAdjustment(forSegmentType:barMetrics:)setContentPositionAdjustment(_:forSegmentType:barMetrics:)UISegmentedControl.SegmentdividerImage(forLeftSegmentState:rightSegmentState:barMetrics:)setDividerImage(_:forLeftSegmentState:rightSegmentState:barMetrics:)setTitleTextAttributes(_:for:)