Skip to content

xjh093/JHRedDot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

JHRedDot

Red dot. 小红点

What is it?

1.自动靠右

2.通过 JHRedDotConfig 配置更多属性

@interface JHRedDotConfig : NSObject

/** Size of red dot. */
@property (nonatomic,  assign) CGSize  size;

/** Radius of red dot. */
@property (nonatomic,  assign) CGFloat  radius;

/** Default is 'redColor'. */
@property (nonatomic,  strong) UIColor *color;

/** Right space in superview. */
@property (nonatomic,  assign) CGFloat  offsetX;

/** Top space in superview. */
@property (nonatomic,  assign) CGFloat  offsetY;

@end

image

image

image

image

image

Logs

  1. Fix bug.(2020-05-13)
  2. Fix bug.(2020-03-04)
  • use 'unsafe_unretained' not 'weak' when observe a object's property in iOS 9.
  1. Fix bug.(2020-03-03)
  2. Upload.(2018-09-03)

About

Red dot. Badge. 小红点方案

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published