mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Expose formatting toolbar buttons as toggle controls to VoiceOver
This commit is contained in:
@@ -32,6 +32,7 @@ struct FormattingToolbar: View {
|
||||
.disabled(item.state == .disabled)
|
||||
.accessibilityIdentifier(item.accessibilityIdentifier)
|
||||
.accessibilityLabel(item.accessibilityLabel)
|
||||
.accessibilityAddTraits(item.state == .reversed ? [.isToggle, .isSelected] : .isToggle)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user