From 7f5876c079738db8112af7c90869906e218403b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Wischer?= Date: Tue, 14 Jul 2026 22:32:23 +0200 Subject: [PATCH] Expose formatting toolbar buttons as toggle controls to VoiceOver --- .../RoomScreen/ComposerToolbar/View/FormattingToolbar.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/ElementX/Sources/Screens/RoomScreen/ComposerToolbar/View/FormattingToolbar.swift b/ElementX/Sources/Screens/RoomScreen/ComposerToolbar/View/FormattingToolbar.swift index 04c6e007d..d28653632 100644 --- a/ElementX/Sources/Screens/RoomScreen/ComposerToolbar/View/FormattingToolbar.swift +++ b/ElementX/Sources/Screens/RoomScreen/ComposerToolbar/View/FormattingToolbar.swift @@ -32,6 +32,7 @@ struct FormattingToolbar: View { .disabled(item.state == .disabled) .accessibilityIdentifier(item.accessibilityIdentifier) .accessibilityLabel(item.accessibilityLabel) + .accessibilityAddTraits(item.state == .reversed ? [.isToggle, .isSelected] : .isToggle) } } }