Structure

ButtonRole

A value that describes the purpose of a button.

Declaration 宣言

struct ButtonRole

Overview 概要

A button role provides a description of a button’s purpose. For example, the destructive role indicates that a button performs a destructive action, like delete user data:


Button("Delete", role: .destructive) { delete() }

Topics 話題

Getting Button Roles

Comparing Roles

Default Implementations 省略時実装

Relationships 関係

Conforms To 次に準拠

See Also 参照

Creating a Button with a Role