Contents

updated(for:)

Returns a copy of the configuration, updated for the given button.

Declaration

func updated(for button: UIButton) -> UIButton.Configuration

Parameters

  • button:

    A button to use as a basis for the configuration.

Return Value

An updated configuration. This method preserves custom values set on the configuration, and updates default values based on the button state.

See Also

Creating configurations