accessoryItem
An optional button that appears at the trailing edge of the tool picker.
Declaration
var accessoryItem: UIBarButtonItem? { get set }Discussion
Use this property to display a button in the tool picker when enough space is available. You can use this button to surface an additional behavior in the picker, such as showing a menu for adding different shapes to the canvas.