Controls and Indicators

Display values and get user selections.

Overview 概要

SwiftUI provides controls that enable user interaction adapted to each platform and context. For example, users can initiate events with buttons, menus, and links, or choose among a set of discrete values with different kinds of pickers. You can also display information to the user with indicators like progress views and gauges.

An illustration showing a variety of different kinds of built-in controls that SwiftUI provides, like buttons, sliders, steppers, toggles, and pickers.

Use these built-in controls and indicators when composing custom views, and style them to match the needs of your app’s user interface. For design guidance, see Human Interface Guidelines.

Topics 話題

Buttons ボタン

Value Inputs

Pickers

Indicators

Configuration

See Also 参照

User Interface Elements