Skip to content

Commit a0182c4

Browse files
igor-signalsashaweiss-signal
authored andcommitted
[IOS-6509] Fix chat settings header buttons not available for VoiceOver.
1 parent 1921f2d commit a0182c4

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Signal/src/views/SettingsHeaderButton.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ class SettingsHeaderButton: UIView {
6161
}
6262

6363
// Accessibility
64+
isAccessibilityElement = true
6465
accessibilityTraits = .button
6566
accessibilityLabel = title
6667
}
@@ -122,10 +123,6 @@ class SettingsHeaderButton: UIView {
122123

123124
// MARK: Accessibility
124125

125-
override class func isAccessibilityElement() -> Bool {
126-
true
127-
}
128-
129126
override func accessibilityActivate() -> Bool {
130127
if #available(iOS 17.4, *) {
131128
button.performPrimaryAction()

0 commit comments

Comments
 (0)