init(primaryAction:secondaryAction:)
Initializes the button configuration object with the specified buttons.
Declaration
init(primaryAction: CPTextButton, secondaryAction: CPTextButton?)Parameters
- primaryAction:
The primary button for the panel. Use this button to specify the default or primary action someone might want to perform. The initializer makes a copy of the provided button.
- secondaryAction:
The secondary button for the panel. Use this to specify an additional action someone might want to perform. The initializer makes a copy of the provided button, if any.
Return Value
An initialized panel button configuration object.