diff --git a/MVMCoreUI/Atomic/Atoms/Views/CarouselIndicator/NumericIndicatorView.swift b/MVMCoreUI/Atomic/Atoms/Views/CarouselIndicator/NumericIndicatorView.swift index bf090066..bfe247f5 100644 --- a/MVMCoreUI/Atomic/Atoms/Views/CarouselIndicator/NumericIndicatorView.swift +++ b/MVMCoreUI/Atomic/Atoms/Views/CarouselIndicator/NumericIndicatorView.swift @@ -83,8 +83,8 @@ open class NumericIndicatorView: CarouselIndicator { open override func setupView() { super.setupView() - isUserInteractionEnabled = false - isAccessibilityElement = false + isAccessibilityElement = true + accessibilityTraits = .adjustable addSubview(pageCount) addSubview(leftArrow) addSubview(rightArrow) @@ -101,7 +101,7 @@ open class NumericIndicatorView: CarouselIndicator { trailingAnchor.constraint(equalTo: rightArrow.trailingAnchor) ]) - accessibilityElements = [leftArrow, pageCount, rightArrow] + // accessibilityElements = [leftArrow, pageCount, rightArrow] } public override func assessTouchOf(_ touchPoint_X: CGFloat) { @@ -123,4 +123,12 @@ open class NumericIndicatorView: CarouselIndicator { pageCount.accessibilityValue = "Page \(newIndex + 1) of \(totalCount)" layoutIfNeeded() } + + open override func accessibilityIncrement() { + incrementCurrentIndex() + } + + open override func accessibilityDecrement() { + decrementCurrentIndex() + } }