validateUserInterfaceItem(_:)
Returns a Boolean value that indicates whether a given user interface item should be enabled.
Declaration
@MainActor func validateUserInterfaceItem(_ item: any NSValidatedUserInterfaceItem) -> BoolParameters
Return Value
Discussion
Subclasses can override this method to perform additional validations. Subclasses should call the underlying method on super in their implementation for items they don’t handle themselves.