validateUserInterfaceItem(_:)
Returns a Boolean value that indicates whether to enable the specified item.
Declaration
@MainActor func validateUserInterfaceItem(_ item: any NSValidatedUserInterfaceItem) -> BoolParameters
- item:
The user interface item to validate.
Return Value
true if the specified item responds to toggleSidebar(_:), false if it doesn’t.