Instance Property


The items displayed on the toolbar.


var items: [UIBarButtonItem]? { get set }


The items, instances of UIBarButtonItem, that are visible on the toolbar in the order they appear in this array. Any changes to this property are not animated. Use the setItems(_:animated:) method to animate changes.

The default value is nil.

See Also

Configuring Toolbar Items

func setItems([UIBarButtonItem]?, animated: Bool)

Sets the items on the toolbar by animating the changes.