- December 17, 2024
- Mins Read
MIBadgeButton is badge button written in Swift with high UITableView/UICollectionView performance.
MIBadgeButton is available through CocoaPods, to install it simply add the following line to your Podfile:
# Swift 3
use_frameworks!
pod “MIBadgeButton-Swift”, :git => ‘https://github.com/mustafaibrahim989/MIBadgeButton-Swift.git’, :branch => ‘master’
# Swift 2
use_frameworks!
pod “MIBadgeButton-Swift”, :git => ‘https://github.com/mustafaibrahim989/MIBadgeButton-Swift.git’, :branch => ‘swift2’
Add MIBadgeButton to Storyboard or init with frame
button.badgeString = “120”
Set EdgeInsets to change the default position of the badge (Optional)
button.badgeEdgeInsets = UIEdgeInsetsMake(10, 0, 0, 15)
Change the badge text color and background color
button.badgeTextColor = UIColor.blueColor()
button.badgeBackgroundColor = UIColor.redColor()
Designed for iOS 8.
A vertical stackview which takes subviews with different widths and adds them to it's rows with paddings, spacings etc.
AudioManager is a Swift package that provides a modular and easy-to-use interface for implementing audio feedback in your applications. It ...