MIBadgeButton-Swift 0.4

MIBadgeButton-Swift 0.4

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Apr 2016
SPMSupports SPM

Maintained by Mustafa Ibrahim.



  • By
  • Mustafa Ibrahim

MIBadgeButton

MIBadgeButton is badge button written in Swift with high UITableView/UICollectionView performance.

Screenshots

alt tag

Installation

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()

Author

Mustafa Ibrahim, [email protected]

Notes

Designed for iOS 8.

License

MIBadgeButton is available under the MIT license. See the LICENSE file for more info.