Latest 0.4
Homepage https://github.com/mustafaibrahim989/MIBadgeButton-Swift
License MIT
Platforms ios 8.0, requires ARC
Authors

MIBadgeButton

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

Screenshots

alt tag

Installation

MIBadgeButton is available through CocoaPods, to install
it simply add the following line to your Podfile:

use_frameworks!
pod "MIBadgeButton-Swift"

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.

Latest podspec

{
    "name": "MIBadgeButton-Swift",
    "version": "0.4",
    "summary": "iOS custom button badge.",
    "homepage": "https://github.com/mustafaibrahim989/MIBadgeButton-Swift",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Mustafa Ibrahim": "[email protected]"
    },
    "source": {
        "git": "https://github.com/mustafaibrahim989/MIBadgeButton-Swift.git",
        "tag": "0.4"
    },
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "Classes/**/*"
}

Pin It on Pinterest

Share This