Contents

setScopeBarButtonTitleTextAttributes(_:for:)

Sets the text attributes for the search bar’ button’s title string for a given state.

Declaration

func setScopeBarButtonTitleTextAttributes(_ attributes: [NSAttributedString.Key : Any]?, for state: UIControl.State)

Parameters

  • attributes:

    A dictionary containing key-value pairs specifying the text attributes to use for state.

    You may specify the font, text color, text shadow color, and text shadow offset, using the keys found in NSString UIKit Additions Reference.

  • state:

    A control state.

See Also

Customizing the scope bar appearance