scopeBarButtonTitleTextAttributes(for:)
Returns the text attributes for the search bar’s button’s title string for a given state.
Declaration
func scopeBarButtonTitleTextAttributes(for state: UIControl.State) -> [NSAttributedString.Key : Any]?Parameters
- state:
A control state.
Return Value
The text attributes for the search bar’ button’s title string for state.
The attributes may specify the font, text color, text shadow color, and text shadow offset, using the keys found in NSString UIKit Additions Reference.