         if shouldSendEventBeforeAnimations {
             sendActions(for: .valueChanged)
         }
-        if shouldUpdateAccessibilityTraitsBeforeAnimations {
-            updateAccessibilityTraits()
+        if shouldUpdateSegmentViewTraitsBeforeAnimations {
+            updateSegmentViewTraits()
         }
         performIndexChange(fromPreviousIndex: previousIndex, toNewIndex: index, animated: animated, completion: { [weak self] in
             guard let weakSelf = self else { return }

            }
        }
        
        init() {
            super.init(frame: CGRect.zero)
            completeInit()

            frame.origin.x = max(min(frame.origin.x, bounds.width - indicatorViewInset - frame.width), indicatorViewInset)
            indicatorView.frame = frame
        case .ended, .failed, .cancelled:
            setIndex(closestIndex(toPoint: indicatorView.center))
        default: break
        }
    }
