// // WXYZ_BadgeView.h // WXReader // // Created by Andrew on 2020/8/7. // Copyright © 2020 Andrew. All rights reserved. // #import FOUNDATION_EXPORT CGFloat const RKNotificationHubDefaultDiameter; NS_ASSUME_NONNULL_BEGIN @interface WXYZ_BadgeView : NSObject //%%% setup - (id)initWithView:(UIView *)view; - (id)initWithBarButtonItem:(UIBarButtonItem *)barButtonItem; //%%% adjustment methods - (void)setView:(UIView *)view andCount:(int)startCount; - (void)setCircleAtFrame:(CGRect)frame; - (void)setCircleColor:(UIColor*)circleColor labelColor:(UIColor*)labelColor; - (void)setCircleBorderColor:(UIColor *)color borderWidth:(CGFloat)width; - (void)moveCircleByX:(CGFloat)x Y:(CGFloat)y; - (void)scaleCircleSizeBy:(CGFloat)scale; @property (nonatomic, strong) UIFont *countLabelFont; //%%% changing the count - (void)increment; - (void)incrementBy:(int)amount; - (void)decrement; - (void)decrementBy:(int)amount; @property (nonatomic, assign) int count; @property (nonatomic, assign) int maxCount; //%%% hiding / showing the count - (void)hideCount; - (void)showCount; //%%% animations - (void)pop; - (void)blink; - (void)bump; @property (nonatomic)UIView *hubView; @end NS_ASSUME_NONNULL_END