Discussion 議論
For example, this is how a .default
action to compose a new email could be added to a view.
var body: some View {
ContentView()
.accessibilityAction {
// Handle action
}
}
Availability 有効性
Technology
func accessibilityAction(_ actionKind: AccessibilityActionKind
= .default, _ handler: @escaping () -> Void
) -> ModifiedContent
<Content, Modifier>
Modifier
is AccessibilityAttachmentModifier
.For example, this is how a .default
action to compose a new email could be added to a view.
var body: some View {
ContentView()
.accessibilityAction {
// Handle action
}
}