<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 16.0.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UITraitCollection/toolbarItemPresentationSize",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UITraitCollection(py)toolbarItemPresentationSize"
  },
  "title" : "toolbarItemPresentationSize"
}
-->

# toolbarItemPresentationSize

The presentation size of a toolbar item in an AppKit toolbar.

```
var toolbarItemPresentationSize: UINSToolbarItemPresentationSize { get }
```

## Discussion

<doc://com.apple.documentation/documentation/AppKit/NSToolbar> supports various display modes that affect the amount of space available for displaying toolbar items. If you use [`NSUIViewToolbarItem`](/documentation/UIKit/NSUIViewToolbarItem) to host a [`UIView`](/documentation/UIKit/UIView) in an <doc://com.apple.documentation/documentation/AppKit/NSToolbar> when you build your app with Mac Catalyst, that view receives information about its expected size through this trait. Use this trait to make any necessary adjustments to your custom view when the trait collection changes, such as when the toolbar switches to a new display mode.

The default value of this trait is [`UINSToolbarItemPresentationSize.unspecified`](/documentation/UIKit/UINSToolbarItemPresentationSize/unspecified) when an <doc://com.apple.documentation/documentation/AppKit/NSToolbar> doesn’t host the view.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)