diff --git a/core/Sources/Components/Tab/View/UIKit/TabUIView.swift b/core/Sources/Components/Tab/View/UIKit/TabUIView.swift index 68a1208db..c93be026a 100644 --- a/core/Sources/Components/Tab/View/UIKit/TabUIView.swift +++ b/core/Sources/Components/Tab/View/UIKit/TabUIView.swift @@ -93,6 +93,12 @@ public final class TabUIView: UIControl { didSet { self.viewModel.setIsEnabled(self.isEnabled) self.segments.forEach{ $0.isEnabled = self.isEnabled } + + if self.isEnabled { + self.accessibilityTraits.remove(.notEnabled) + } else { + self.accessibilityTraits.insert(.notEnabled) + } } } @@ -202,7 +208,7 @@ public final class TabUIView: UIControl { self.viewModel = TabViewModel( theme: theme, apportionsSegmentWidthsByContent: apportionsSegmentWidthsByContent, - content: content, + content: content, tabSize: tabSize) super.init(frame: .zero) @@ -516,6 +522,7 @@ public final class TabUIView: UIControl { } private func setupAccessibility() { + self.accessibilityIdentifier = TabAccessibilityIdentifier.tab self.accessibilityTraits.insert(.tabBar) self.isAccessibilityElement = false self.accessibilityContainerType = .semanticGroup