Contents

setPreferredSymbolConfiguration(_:forImageIn:)

Sets the preferred symbol configuration for a button state.

Declaration

func setPreferredSymbolConfiguration(_ configuration: UIImage.SymbolConfiguration?, forImageIn state: UIControl.State)

Parameters

  • configuration:

    The image symbol configuration for the specified state.

  • state:

    The state that uses the specified image symbol configuration. Possible values are described in State Swift.struct.

See Also

Managing images and tint color