Instance Method

toolbarWillAddItem(_:)

Sent just before a new item is added to a toolbar.

Declaration

optional func toolbarWillAddItem(_ notification: Notification)

Parameters

notification

A notification named willAddItemNotification.

Discussion

If you need to cache a reference to a toolbar item or need to set up some initial state before a toolbar item is added, this is where to do it.

See Also

Responding to Additions and Deletions in the Toolbar

func toolbarDidRemoveItem(Notification)

Sent just after an item has been removed from a toolbar.