             
             let badgePath = UIBezierPath(rect: badgeRect)
             badgePath.lineWidth = lineWidth
-            titleLabel.textColor.set()
+            titleLabel.textColor.withAlphaComponent(titleLabel.alpha).set()
             badgePath.stroke()
         }
     }

            let inset = (badgeSize.width + margin) / 2
            titleEdgeInsets = UIEdgeInsetsMake(0, -inset, 0, inset)
            
            let countPoint = CGPoint(x: titleLabel.frame.maxX + margin + countEdgeInsets.left - inset,
                                     y: titleLabel.frame.midY - (countString.size().height / 2))
            
            countString.draw(at: countPoint)

        return UIEdgeInsets(top: countInsetTop, left: countInsetLeft, bottom: countInsetBottom, right: countInsetRight)
    }
    
    override func layoutSubviews() {
        super.layoutSubviews()
        setNeedsDisplay()
    }
    
    override func draw(_ rect: CGRect) {
        if let titleLabel = titleLabel {
            let countFont = UIFont(name: titleLabel.font.fontName,
