Instance Property

sizeMode

The toolbar’s size mode.

Declaration

var sizeMode: NSToolbar.SizeMode { get set }

Discussion

If there is no icon of the given size for a toolbar item, the toolbar item creates one by scaling an icon of another size.

See Also

Toolbar Attributes

var identifier: NSToolbar.Identifier

The receiver’s identifier.

var displayMode: NSToolbar.DisplayMode

The toolbar’s display mode.

var showsBaselineSeparator: Bool

A Boolean value that indicates whether the toolbar shows the separator between the toolbar and the main window contents.

var allowsUserCustomization: Bool

A Boolean value that indicates whether users are allowed to modify the toolbar.

var allowsExtensionItems: Bool

A Boolean value that indicates whether the toolbar can add items for Action extensions.

var items: [NSToolbarItem]

An array containing the toolbar’s current items, in order.

var visibleItems: [NSToolbarItem]?

An array containing the toolbar’s currently visible items.