             textLabel.textColor = item.textColor
             textLabel.font =  UIFont.systemFont(ofSize: item.textFontSize)
             textLabel.textAlignment = NSTextAlignment.center
-
+            container.addSubview(textLabel)
+            
+            
             container.backgroundColor = (items as [RAMAnimatedTabBarItem])[index].bgDefaultColor
-
-            container.addSubview(icon)
-            let itemSize = item.image?.size ?? CGSize(width: 30, height: 30)
-            //createConstraints(icon, container: container, size: itemSize, yOffset: -5 - item.yOffSet)
-
-            container.addSubview(textLabel)
-            let textLabelWidth = tabBar.frame.size.width / CGFloat(items.count) - 5.0
-            //createConstraints(textLabel, container: container, width: textLabelWidth, yOffset: 16 - item.yOffSet, heightRelation: .greaterThanOrEqual)
-
             if item.isEnabled == false {
                 icon.alpha = 0.5
                 textLabel.alpha = 0.5

    }
    
    // MARK: actions
    private func handleSelection(index: Int) {
        guard let items = tabBar.items as? [RAMAnimatedTabBarItem] else { return }
        let currentIndex = index

        for (index, container) in containers.enumerated() {
            let frame = CGRect(x: itemWidth * CGFloat(index), y: 0, width: itemWidth, height: tabBar.bounds.height)
            container.frame = frame
            
            if let item = tabBar.items?.at(index) as? RAMAnimatedTabBarItem {
                let iconView = item.iconView?.icon
                let iconSize = iconView?.image?.size ?? CGSize(width: 30, height: 30)
                iconView?.frame = CGRect(x: (container.frame.width - iconSize.width) / 2, y: (container.frame.height - iconSize.height) / 2 - 5 - item.yOffSet, width: iconSize.width, height: iconSize.height)
                
                
                let label = item.iconView?.textLabel
                let labelSize = label?.sizeThatFits(CGSize.zero) ?? CGSize(width: tabBar.frame.size.width / CGFloat(containers.count), height: 20)
                label?.frame = CGRect(x: (container.frame.width - labelSize.width) / 2, y: (container.frame.height) / 2 + 10 - item.yOffSet, width: labelSize.width, height: labelSize.height)
            }
        }
    }
    
