User Input

Respond to user-driven events, like keyboard shortcuts or a change in focus.

Overview 概要

SwiftUI provides mechanisms to listen for and react to various kinds of user input. For example, you can create keyboard shortcuts, support drag and drop, or respond to a form submission. Configure these behaviors using the view modifiers found in Input and Event Modifiers, using the supporting types found here.

Topics 話題

Keyboard Shortcuts

Hover

Focus

Drag and Drop

Submission Events

Input Controls

See Also 参照

Interactivity