splitViewItem(for:)
Returns the corresponding split view item for the specified child view controller of the split view controller.
Declaration
func splitViewItem(for viewController: NSViewController) -> NSSplitViewItem?Parameters
- viewController:
The child view controller with the corresponding split view item you want.
Return Value
The corresponding split view item, or nil if viewController isn’t a child of the split view controller.