   private let badgeScaleFactor: CGFloat
   private let badgeShining:Bool
   
+  private let initialSize: CGFloat = 25
+  
   // I recommend to use the allocator customBadgeWithString
   init(badgeString: String, withStringColor stringColor:UIColor, withInsetColor insetColor:UIColor,
     withBadgeFrame badgeFrameYesNo:Bool, withBadgeFrameColor frameColor:UIColor,

    self.badgeShining = shining
    self.badgeFrame = badgeFrameYesNo
      
    super.init(frame: CGRect(x: 0, y: 0, width: 25, height: 25))
      
    setTranslatesAutoresizingMaskIntoConstraints(false)
    

    
    if countElements(badgeText) >= 2 {
      let flexSpace:CGFloat = CGFloat(countElements(badgeText))
      let rectWidth:CGFloat = initialSize + (stringSize.width + flexSpace)
      let rectHeight:CGFloat = initialSize
      
      size = CGSize(width: rectWidth * badgeScaleFactor, height: rectHeight * badgeScaleFactor)
    } else {
      size = CGSize(width: initialSize * badgeScaleFactor, height: initialSize * badgeScaleFactor)
    }

    return size
