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
cutomviewproperty to implement the solution the view will be replaced with thecustomview, so i let thecustomviewtake the image of the originalUIBarButtonItem