Adds an action to perform in response to a move command, like when the user presses an arrow key on a Mac keyboard, or taps the edge of the Siri Remote when controlling an Apple TV.
SDKs
- macOS 10.15+
- tvOS 13.0+
- Xcode 11.0+
Framework
- Swift
UI
Declaration
func onMoveCommand(perform action: ((Move Command Direction) -> Void)?) -> some View