badgebutton-swift

A subclass of UIButton that has a badge view ready.

Usage:

let b = BadgeButton(icon: UIImage(named: "bell", shouldLimitValueTo9: true)!)

Demo:

ezgif-2-0700f9bc44

GitHub

View Github