Instance Method

onCommand(_:perform:)

Adds an action to perform in response to the given selector.

Declaration

func onCommand(_ selector: Selector, perform action: (() -> Void)?) -> some View