                 item.removeFromSuperview()
                 item.removeConstraints(item.constraints)
             })
-
-            stackView.addArrangedSubview(overflowToggleItem)
         }
     }
 

    private func setOverflowItemsVisible(_ visible: Bool) {
        if visible {
            scrollableStackView.addArrangedSubviews(overflowItems)
            scrollableStackView.addArrangedSubview(overflowToggleItem)

            configureConstraints(for: overflowItems, in: stackView)
        } else {

        static let durationShort = TimeInterval(0.15)
        static let delayZero = TimeInterval(0)
        static let peekWidthRatio = CGFloat(0.05)
        static let springDuration = TimeInterval(0.6)
        static let springDamping = CGFloat(0.5)
        static let springInitialVelocity = CGFloat(0.1)
        static let interItemAnimationDelay = TimeInterval(0.1)
    }

    struct Constants {
