Instance Method インスタンスメソッド

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 宣言

func onDeleteCommand(perform action: (() -> Void)?) -> some View