Skip to content

Commit f2d46f5

Browse files
committed
Remove FormatBar.overflowToggleAccessibilityLabel
This is no longer needed since this is picked up by the hosting app’s localization.
1 parent 82208f1 commit f2d46f5

1 file changed

Lines changed: 2 additions & 13 deletions

File tree

Aztec/Classes/GUI/FormatBar/FormatBar.swift

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -864,19 +864,8 @@ extension FormatBar: UIScrollViewDelegate {
864864

865865
// MARK: - Accessibility
866866

867-
extension FormatBar {
868-
/// The accessibility label of the overflow toggle button
869-
///
870-
public var overflowToggleAccessibilityLabel: String? {
871-
set {
872-
overflowToggleItem.accessibilityLabel = newValue
873-
}
874-
get {
875-
return overflowToggleItem.accessibilityLabel
876-
}
877-
}
878-
879-
private func updateOverflowToggleItemAccessibilityTraits(expanded: Bool) {
867+
private extension FormatBar {
868+
func updateOverflowToggleItemAccessibilityTraits(expanded: Bool) {
880869
// We _could_ use overflowToggleItem.isSelected instead of modifying the traits. However,
881870
// that would highlight the button with another color, which we don't need.
882871
overflowToggleItem.accessibilityTraits = expanded ? [.button, .selected] : [.button]

0 commit comments

Comments
 (0)