Projekte
Auf GitHub ansehen
mustafaibrahim989/MIBadgeButton-Swift
Über uns
iOS custom badge button.
Web- und App-EntwicklungGemessener Sternzuwachs
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Verlauf wird gesammelt
Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.
README.md
OriginalMIBadgeButton
MIBadgeButton is badge button written in Swift with high UITableView/UICollectionView performance.
Screenshots

Installation
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()
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.
Ähnliche Projekte entdecken
Wird geladen…