Skip to content

Latest commit

 

History

History
5 lines (4 loc) · 334 Bytes

README.md

File metadata and controls

5 lines (4 loc) · 334 Bytes

UIBarButtonItemWithBadgeNumber

Extensions to create a UIBarButtonItem with a CAShapeLayer holding a string to display a badge number or text

You can simply create a custom UIButton and then add it to a UIBarButtonItem as a customView, then use the setBadge function found in the extension on the UIBarButtonItem to set your badge.