Skip to content

Instantly share code, notes, and snippets.

Avatar

Mohaned Benmesken mohn93

View GitHub Profile
View README.md

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 the customview, so i let the customview take the image of the original UIBarButtonItem
You can’t perform that action at this time.