init(backgroundBlurStyle:backgroundColor:icon:title:subtitle:primaryButtonLabel:primaryButtonBackgroundColor:secondaryButtonLabel:secondaryButtonSubmenuItems:)
Initializes a shield configuration with optional submenu items for the secondary button.
Declaration
init(backgroundBlurStyle: UIBlurEffect.Style? = nil, backgroundColor: UIColor? = nil, icon: UIImage? = nil, title: ShieldConfiguration.Label? = nil, subtitle: ShieldConfiguration.Label? = nil, primaryButtonLabel: ShieldConfiguration.Label? = nil, primaryButtonBackgroundColor: UIColor? = nil, secondaryButtonLabel: ShieldConfiguration.Label? = nil, secondaryButtonSubmenuItems: [String]? = nil)Parameters
- backgroundBlurStyle:
A blur style to apply to the background color.
- backgroundColor:
A color to display for the shield’s background.
- icon:
An icon to display on the shield.
- title:
A title for the shield.
- subtitle:
Additional text to display on the shield.
- primaryButtonLabel:
A label for the shield’s main button.
- primaryButtonBackgroundColor:
A background color for the shield’s main button.
- secondaryButtonLabel:
An additional button to display on the shield.
- secondaryButtonSubmenuItems:
A list of one to three items to display in a submenu after someone taps the secondary button.
Discussion
This initializer extends the shield configuration structure to display a submenu when someone taps the secondary button.