Use a View
modifier like confirmation
instead.
Initializerinit(title:
init(title:message:buttons:)
Creates an action sheet with the provided buttons.
アクションシートをこの提供されたボタンで作成します。
Deprecated 非推奨
Availability 有効性
- iOS 13.0–15.4 Deprecated
- iPadOS 13.0–15.4 Deprecated
- Mac Catalyst 13.0–15.4 Deprecated
- tvOS 13.0–15.4 Deprecated
- watchOS 6.0–8.5 Deprecated
Technology
- Swift
UI
Declaration 宣言
init(title: Text
, message: Text
? = nil, buttons: [ActionSheet
.Button
] = [.cancel()])
Parameters パラメータ
title
The title of the action sheet.
message
The message to display in the body of the action sheet.
buttons
The buttons to show in the action sheet.