         }
         // Get the container views.
         let navigationItemViews = itemViews ?? _createAndSetupNavigationItemViews()
-        for _itemView in navigationItemViews.itemsView.subviews {
-            _itemView.removeFromSuperview()
-        }
+        navigationItemViews.itemsView.subviews.forEach{ $0.removeFromSuperview() }
         if _widthOfTransitionNavigationItemViewForZeroContent == nil {
             let width = navigationItemViews.itemsView.widthAnchor.constraint(equalToConstant: 0.0)
             width.isActive = true

            setSelectedTitle(at: _selectedTitleItemIndex, animated: true)
        }
        
        _calculateWidthConstantOfContentAlignmentView()
        _offsetPositionsUpToEndIndex = _calculatedPositionsUptoTitleItemAtEndIndex()
        
        return (true, item)
    }

    
    @objc
    fileprivate func _scrollToSelectedTitleItem(items: [TabNavigationTitleItem]? = nil, `in` scrollView: UIScrollView? = nil, animated: Bool = true) {
        let offsetx = _horizontalOffset(upto: _selectedTitleItemIndex, in: items)
        let titleItemScrollView = scrollView ?? _titleItemsScrollView
        
        // guard titleItemScrollView.contentOffset.x != offsetx else { return }
        
        if animated && titleItemScrollView === _titleItemsScrollView {
            // Remove the interactive transition delegate and animated transition delegate.
            // _delegatesQueue.remove(_interactiveTransition)
            // _delegatesQueue.remove(_animatedTransition)
            // Add did end scrolling animation call back delegate.
            // _delegatesQueue.add(_didEndScrollingAnimation)
        }
        
        if titleItemScrollView.contentOffset.x == offsetx {
            // Make sample offsets.
            titleItemScrollView.setContentOffset(CGPoint(x: offsetx - 1.0, y: 0.0), animated: false)
            // Move to the target content offset.
        };  titleItemScrollView.setContentOffset(CGPoint(x: offsetx, y: 0.0), animated: animated)
    }
    @objc
    fileprivate func _scrollToSelectedTitleItemWithAnimation() {
