v1.1 Swift 3.2 - 4.2
v1.2 Swift 4.0 - 5.0
v1.3 Swift 5
pod 'NGSBadgeBarButton'
Import NGSBadgeBarButton.swift file into Your project
None
Note: 'insets' parameter can be omit to use default value
// Set badge value and control label appearance
public private(set) weak var badgeLabel:UILabel! = nil
// Badge Bar Button with image
init(badgeButtonWithImage image: UIImage,
target: Any,
selector: Selector,
insets: UIEdgeInsets = NGSBadgeBarButton.kDefaultBadgeInsets)
// Badge Bar Button with title
init(badgeButtonWithTitle text: String,
target: Any,
selector: Selector,
insets: UIEdgeInsets = NGSBadgeBarButton.kDefaultBadgeInsets)
// Custom Badge Bar Button
init(badgeButtonWithCustomView customView: UIView,
insets: UIEdgeInsets = NGSBadgeBarButton.kDefaultBadgeInsets)