BogoJXCategoryView.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. //
  2. // CustomCategoryCell.h
  3. // BuguLive
  4. //
  5. // Created by voidcat on 2024/7/25.
  6. // Copyright © 2024 xfg. All rights reserved.
  7. //
  8. #import <JXCategoryViewExt/JXCategorySubTitleView.h>
  9. #import <JXCategoryViewExt/JXCategoryView.h>
  10. NS_ASSUME_NONNULL_BEGIN
  11. @interface BogoJXCategoryView : JXCategoryTitleView
  12. // 子标题列表
  13. @property (nonatomic, strong) NSArray <NSString *> *subTitles;
  14. // 子标题相对于title的位置,默认JXCategorySubTitlePositionStyle_Bottom
  15. @property (nonatomic, assign) JXCategorySubTitlePositionStyle positionStyle;
  16. // 子标题相当于title的对齐,默认JXCategorySubTitleAlignStyle_Center
  17. // 当positionStyle为上下时,对齐方式左中右有效
  18. // 当positionStyle为左右时,对齐方式上中下有效
  19. @property (nonatomic, assign) JXCategorySubTitleAlignStyle alignStyle;
  20. // 子标题相对于title的间距,默认0
  21. @property (nonatomic, assign) CGFloat subTitleWithTitlePositionMargin;
  22. // 子标题相当于title的对齐间距,默认0
  23. @property (nonatomic, assign) CGFloat subTitleWithTitleAlignMargin;
  24. // 子标题默认颜色 // 默认:[UIColor blackColor]
  25. @property (nonatomic, strong) UIColor *subTitleColor;
  26. // 子标题选中颜色 // 默认:[UIColor blackColor]
  27. @property (nonatomic, strong) UIColor *subTitleSelectedColor;
  28. // 子标题默认字体 // 默认:[UIFont systemFontOfSize:12]
  29. @property (nonatomic, strong) UIFont *subTitleFont;
  30. // 子标题选中字体 //文字被选中的字体。默认:与titleFont一样
  31. @property (nonatomic, strong) UIFont *subTitleSelectedFont;
  32. // 是否忽略subTitle宽度,默认NO,此属性只在positionStyle为左右时有效
  33. @property (nonatomic, assign, getter=isIgnoreSubTitleWidth) BOOL ignoreSubTitleWidth;
  34. @property (nonatomic, strong) UIView *backgroundView;
  35. @property (nonatomic, strong) UIColor *selectedBackgroundColor;
  36. @property (nonatomic, strong) UIColor *unselectedBackgroundColor;
  37. @end
  38. NS_ASSUME_NONNULL_END