A subclass of `UIButton` that has a badge view ready

badgebutton-swift

A subclass of UIButton that has a badge view ready.

Usage:

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

Demo:

GitHub

View Github