Skip to content

Commit 7bf6f93

Browse files
author
Martin Barreto
authored
Merge pull request #654 from marcshilling/master
Prefer the indicatorInfo's accessibilityLabel
2 parents 9a730c7 + 2b4fe13 commit 7bf6f93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/ButtonBarPagerTabStripViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ open class ButtonBarPagerTabStripViewController: PagerTabStripViewController, Pa
348348
}
349349
}
350350
cell.isAccessibilityElement = true
351-
cell.accessibilityLabel = cell.label.text
351+
cell.accessibilityLabel = indicatorInfo.accessibilityLabel ?? cell.label.text
352352
cell.accessibilityTraits.insert([.button, .header])
353353
return cell
354354
}

0 commit comments

Comments
 (0)