use_frameworks!
pod 'SwiftyBadgeButton'
SwiftyBadgeButton is a subclass of UIButton and can be used just as one. To set the badge, all you need to so is set a text:
badgeButton.badgeText = "1"
animatedSets whether the badge should animate upon setting a badgeText. Default: truebadgeInsetSets the insets and outsets for the badgebadgeSizeSets the default badge size. The width will grow automatically according to the text. The height will always stay the same. _Default: CGSize(width 15, height: 15)badgeBackgroundColorSets the badge background color. Default: UIColor.redbadgeFontSets the badge font. Default: UIFont.systemFont(ofSize: 10)badgeTextColorSets the badge text color. Default: UIColor.white
