You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

51 lines
1.2 KiB

//
// WXYZ_BadgeView.h
// WXReader
//
// Created by Andrew on 2020/8/7.
// Copyright © 2020 Andrew. All rights reserved.
//
#import <Foundation/Foundation.h>
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