toolbarItems
The toolbar items associated with the view controller.
Declaration
var toolbarItems: [UIBarButtonItem]? { get set }Discussion
This property contains an array of UIBarButtonItem objects and works in conjunction with a UINavigationController object. If this view controller is embedded inside a navigation controller interface, and the navigation controller displays a toolbar, this property identifies the items to display in that toolbar.
You can set the value of this property explicitly or use the setToolbarItems(_:animated:) method to animate changes to the visible set of toolbar items.