NSUIViewToolbarItem
An item in a window’s toolbar that hosts a custom UIKit view.
Declaration
class NSUIViewToolbarItemMentioned in
Overview
The NSUIViewToolbarItem class lets you display a UIView in an NSToolbar. Use this class if you have a custom UIKit view you want to appear as a control in a toolbar when you build your app with Mac Catalyst.
For UIKit controls that support behavioral styles, set preferredBehavioralStyle to UIBehavioralStyle.mac if you want them to appear in the toolbar with the appearance and behavior of AppKit controls.