---
title: "validateUserInterfaceItem(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nssplitviewcontroller/validateuserinterfaceitem(_:)"
---

# validateUserInterfaceItem(_:)

Returns a Boolean value that indicates whether to enable the specified item.

## Declaration

```swift
@MainActor func validateUserInterfaceItem(_ item: any NSValidatedUserInterfaceItem) -> Bool
```

## Parameters

- `item`: The user interface item to validate.

## Return Value

Return Value true if the specified item responds to toggleSidebar(_:), false if it doesn’t.
