onDeleteCommand(perform:)
Adds an action to perform in response to the system’s Delete command, or pressing either the ⌫ (backspace) or ⌦ (forward delete) keys while the view has focus.
Declaration
nonisolated func onDeleteCommand(perform action: (() -> Void)?) -> some View