changes made for ticket
This commit is contained in:
parent
49f3584a47
commit
be31eb37bb
@ -192,9 +192,7 @@ open class CarouselIndicator: Control, CarouselPageControlProtocol {
|
|||||||
currentIndex = model.currentIndex
|
currentIndex = model.currentIndex
|
||||||
isEnabled = model.enabled
|
isEnabled = model.enabled
|
||||||
|
|
||||||
if let accessibleValue = MVMCoreUIUtility.hardcodedString(withKey: model.accessibilityHasSlidesInsteadOfPage ? "MVMCoreUIPageControlslides_currentpage_index" : "MVMCoreUIPageControl_currentpage_index") {
|
|
||||||
accessibilityValue = String(format: accessibleValue, currentIndex + 1, numberOfPages)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
@ -213,6 +211,10 @@ open class CarouselIndicator: Control, CarouselPageControlProtocol {
|
|||||||
|
|
||||||
func accessibilityAdjust(toPage index: Int) {
|
func accessibilityAdjust(toPage index: Int) {
|
||||||
|
|
||||||
|
if let accessibleValue = MVMCoreUIUtility.hardcodedString(withKey: (carouselIndicatorModel?.accessibilityHasSlidesInsteadOfPage ?? false) ? "MVMCoreUIPageControlslides_currentpage_index" : "MVMCoreUIPageControl_currentpage_index") {
|
||||||
|
accessibilityValue = String(format: accessibleValue, currentIndex + 1, numberOfPages)
|
||||||
|
}
|
||||||
|
|
||||||
if (index < numberOfPages && index >= 0) || carouselIndicatorModel?.alwaysSendAction ?? false {
|
if (index < numberOfPages && index >= 0) || carouselIndicatorModel?.alwaysSendAction ?? false {
|
||||||
carouselIndicatorModel?.animated = false
|
carouselIndicatorModel?.animated = false
|
||||||
previousIndex = currentIndex
|
previousIndex = currentIndex
|
||||||
|
|||||||
@ -125,11 +125,11 @@ open class NumericIndicatorView: CarouselIndicator {
|
|||||||
layoutIfNeeded()
|
layoutIfNeeded()
|
||||||
}
|
}
|
||||||
|
|
||||||
open override func accessibilityIncrement() {
|
// open override func accessibilityIncrement() {
|
||||||
incrementCurrentIndex()
|
// incrementCurrentIndex()
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
open override func accessibilityDecrement() {
|
// open override func accessibilityDecrement() {
|
||||||
decrementCurrentIndex()
|
// decrementCurrentIndex()
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user