             
             if 0 == index { // selected first elemet
                 item.selectedState()
+                container.backgroundColor = (items as [RAMAnimatedTabBarItem])[index].bgSelectedColor
             }
             
             item.image = nil

            where !shouldSelect {
            return
        }
        
        if selectedIndex != currentIndex {
            let animationItem : RAMAnimatedTabBarItem = items[currentIndex]
            animationItem.playAnimation()
            
            let deselectItem = items[selectedIndex]
            deselectItem.deselectAnimation()
            
            selectedIndex = gestureView.tag
            delegate?.tabBarController?(self, didSelectViewController: self)

    
    @IBInspectable public var textColor: UIColor = UIColor.blackColor()
    @IBInspectable public var iconColor: UIColor = UIColor.clearColor() // if alpha color is 0 color ignoring
    @IBInspectable var bgDefaultColor: UIColor = UIColor.grayColor()
    @IBInspectable var bgSelectedColor: UIColor = UIColor.whiteColor()

    public var badge: RAMBadge? // use badgeValue to show badge
    
    public var iconView: (icon: UIImageView, textLabel: UILabel)?
