title: Add a badge to UIButtonitem with MIBadgeButton-Swift
body: <p>I'm trying to add a badge to my UIBarButtonItem and for that I have found a this github :</p>
  
  <p><a href="https://github.com/mustafaibrahim989/MIBadgeButton-Swift" rel="nofollow">MIBadgeButton-Swift</a> </p>
  
  <p>but I don't know how to use it.</p>
  
  <p>This is my code which makes my custom UIBarButtonItem:</p>
  
  <pre><code>let shopingCartBTN = UIButton(type: UIButtonType.Custom)
  shopingCartBTN.setImage(UIImage(named: "shopingCarBarIcon"), forState: UIControlState.Normal)
  shopingCartBTN.imageView?.image = UIImage(named: "shopingCarBarIcon")
  shopingCartBTN.frame = CGRectMake(0, 0, 60, 30)//Just increase the width of button
  shopingCartBTN.setTitle("5", forState: .Normal)
  shopingCartBTN.addTarget(self, action: "", forControlEvents: UIControlEvents.TouchUpInside)
  let customBarItem = UIBarButtonItem(customView: shopingCartBTN)
  self.navigationItem.leftBarButtonItem = customBarItem;
  </code></pre>
  
  <p>How could I use the MIBadgeButton-Swift to make a badge for my UIBarButtonItem?</p>