// // UIButton+Badge.h // MoHuanXingYu // // Created by aa on 2019/7/23. // Copyright © 2019 MoHuanXingYu. All rights reserved. // #import NS_ASSUME_NONNULL_BEGIN @interface UIButton (Badge) @property (strong, nonatomic) UILabel *badge; // Badge value to be display @property (nonatomic) NSString *badgeValue; // Badge background color @property (nonatomic) UIColor *badgeBGColor; // Badge text color @property (nonatomic) UIColor *badgeTextColor; // Badge font @property (nonatomic) UIFont *badgeFont; // Padding value for the badge @property (nonatomic) CGFloat badgePadding; // Minimum size badge to small @property (nonatomic) CGFloat badgeMinSize; // Values for offseting the badge over the BarButtonItem you picked @property (nonatomic) CGFloat badgeOriginX; @property (nonatomic) CGFloat badgeOriginY; // In case of numbers, remove the badge when reaching zero @property BOOL shouldHideBadgeAtZero; // Badge has a bounce animation when value changes @property BOOL shouldAnimateBadge; @end NS_ASSUME_NONNULL_END