ONEAPP-4683 - updated to accesibilityValue for the tabs position.

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2024-02-06 14:38:22 -06:00
parent 928483657d
commit 3720541b42
2 changed files with 8 additions and 1 deletions

View File

@ -171,6 +171,8 @@ open class Tabs: View {
/// Called once when a view is initialized and is used to Setup additional UI or other constants and configurations. /// Called once when a view is initialized and is used to Setup additional UI or other constants and configurations.
open override func setup() { open override func setup() {
super.setup() super.setup()
isAccessibilityElement = false
scrollView = UIScrollView() scrollView = UIScrollView()
scrollView.translatesAutoresizingMaskIntoConstraints = false scrollView.translatesAutoresizingMaskIntoConstraints = false
scrollView.showsHorizontalScrollIndicator = false scrollView.showsHorizontalScrollIndicator = false
@ -262,6 +264,7 @@ open class Tabs: View {
model.onClick?(tab.index) model.onClick?(tab.index)
self.selectedIndex = tab.index self.selectedIndex = tab.index
self.onTabDidSelect?(tab.index) self.onTabDidSelect?(tab.index)
let t = tabViews[tab.index]
} }
} }
} }
@ -301,7 +304,7 @@ open class Tabs: View {
tabItem.orientation = orientation tabItem.orientation = orientation
tabItem.surface = surface tabItem.surface = surface
tabItem.indicatorPosition = indicatorPosition tabItem.indicatorPosition = indicatorPosition
tabItem.accessibilityHint = "\(index+1) of \(tabViews.count) Tabs" tabItem.accessibilityValue = "\(index+1) of \(tabViews.count) Tabs"
} }
} }

View File

@ -1,3 +1,7 @@
1.0.53
----------------
- ONEAPP-4683 - Updated to accesibilityValue for the tabs position.
1.0.52 1.0.52
---------------- ----------------
- ONEAPP-6244 - TitleLockup TitleLabel marked as .heading for Accessibility. - ONEAPP-6244 - TitleLockup TitleLabel marked as .heading for Accessibility.