validate(_:)
Asks the receiving responder to validate the command.
Declaration
func validate(_ command: UICommand)Parameters
- command:
A mutable command object.
Discussion
Override this method in your view controller to make changes to a command before the command system renders it as a menu item.