Initializer

init(title:message:primaryButton:secondaryButton:)

Creates an alert with two buttons. 2つのボタンをもつ警報を作成します。

Declaration 宣言

init(title: Text, message: Text? = nil, primaryButton: Alert.Button, secondaryButton: Alert.Button)

Parameters パラメータ

title

The title of the alert.

message

The message to display in the body of the alert.

primaryButton

The first button to show in the alert.

secondaryButton

The second button to show in the alert.

Discussion 議論

The system determines the visual ordering of the buttons. システムは、ボタンの視覚的並びを決定します。

See Also 参照

Creating an Alert 警報を作成する