A binding to an optional source of truth for the sheet.
シートに対するある随意の信頼できる情報源へのあるバインディング。
When item is non-nil, the system passes the item’s content to the modifier’s closure. You display this content in a sheet that you create that the system displays to the user. If item changes, the system dismisses the sheet and replaces it with a new one using the same process.
onDismiss
The closure to execute when dismissing the sheet.
content
A closure returning the content of the sheet.
シートの内容を返しているあるクロージャ。
Discussion
議論
Use this method when you need to present a modal view with content from a custom data source. The example below shows a custom data source InventoryItem that the content closure uses to populate the display the action sheet shows to the user: