This is fork from UIBarButtonItem+Badge.swift
##Features
- Added support for RTL, i mean positioning the badge in the opposite side based on view direction
- Added support to change the text color
- Make the badge width expandable based on the label content
- Solved the problem of the View property can't be found on ios 10 and replace the implementation idea with
UIButtonView
- Since i use
cutomview
property to implement the solution the view will be replaced with thecustomview
, so i let thecustomview
take the image of the originalUIBarButtonItem