init(systemItem:primaryAction:menu:)
Creates an item using the specified system item, primary action, and context menu.
Declaration
@MainActor @preconcurrency convenience init(systemItem: UIBarButtonItem.SystemItem, primaryAction: UIAction? = nil, menu: UIMenu? = nil)Parameters
- systemItem:
The system item to use as the first item on the bar. For possible values, see Systemitem.
- primaryAction:
A Uiaction to associate with the item. The system item doesn’t use the action to configure its title and image.
- menu:
The menu to present. The context menu displays in response to a person tapping the item.
Return Value
A newly initialized UIBarButtonItem.