---
title: sizeMode
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstoolbar/sizemode-swift.property
---

# sizeMode

The toolbar’s size mode.

## Declaration

```swift
var sizeMode: NSToolbar.SizeMode { get set }
```

## Discussion

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

## See Also

### Deprecated

- [centeredItemIdentifier](appkit/nstoolbar/centereditemidentifier.md)
- [fullScreenAccessoryView](appkit/nstoolbar/fullscreenaccessoryview.md)
- [fullScreenAccessoryViewMinHeight](appkit/nstoolbar/fullscreenaccessoryviewminheight.md)
- [fullScreenAccessoryViewMaxHeight](appkit/nstoolbar/fullscreenaccessoryviewmaxheight.md)
- [NSToolbar.SizeMode](appkit/nstoolbar/sizemode-swift.enum.md)
