Contents

init(sidebarWithViewController:)

Creates a split view item that represents a sidebar for the specified view controller.

Declaration

convenience init(sidebarWithViewController viewController: NSViewController)

Discussion

Sidebar items take advantage of the standard system appearance and behavior for sidebars, including:

  • The translucent material background

  • The ability to collapse and expand on split view size changes

  • The ability to overlay at small split view sizes in full-screen mode

Additionally, sidebars use standard system default values for these properties:

See Also

Creating a split view item