JSBadgeView

Customizable UIKit badge view like the one on applications in the iOS springboard. Very optimized for performance: drawn entirely using CoreGraphics.

Language: Obj-C
License: MIT

Usage

Clone the repository:

$ git clone [email protected]:JaviSoto/JSBadgeView.git
  • Check out the sample project.

  • Drag the JSBadgeView folder into your project.

  • Include the header file:

#import "JSBadgeView.h"

Create a JSBadgeView and attach it to a view at the position you like. Example:

JSBadgeView *badgeView = [[JSBadgeView alloc] initWithParentView:rectangle alignment:JSBadgeViewAlignmentTopRight];
badgeView.badgeText = @"3";

GitHub