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

# validateUserInterfaceItem(_:)

Returns a Boolean value that indicates whether the sender should be enabled.

## Declaration

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

## Parameters

- `item`: The user interface item to validate. You can send anItem the doc://com.apple.appkit/documentation/AppKit/NSValidatedUserInterfaceItem/action and doc://com.apple.appkit/documentation/AppKit/NSValidatedUserInterfaceItem/tag messages.

## Return Value

Return Value true if the user interface item should be enabled, otherwise false.

## See Also

### Related Documentation

- [User Interface Validation](apple-archive/documentation/Cocoa/Conceptual/UIValidation.md)
