SCIndexViewConfiguration.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #import <UIKit/UIKit.h>
  2. extern const NSUInteger SCIndexViewInvalidSection;
  3. extern const NSInteger SCIndexViewSearchSection;
  4. typedef NS_ENUM(NSUInteger, SCIndexViewStyle) {
  5. SCIndexViewStyleDefault = 0, // 指向点
  6. SCIndexViewStyleCenterToast, // 中心提示弹层
  7. };
  8. @interface SCIndexViewConfiguration : NSObject
  9. @property (nonatomic, assign, readonly) SCIndexViewStyle indexViewStyle; // 索引提示风格
  10. @property (nonatomic, strong) UIColor *indicatorBackgroundColor; // 指示器背景颜色
  11. @property (nonatomic, strong) UIColor *indicatorTextColor; // 指示器文字颜色
  12. @property (nonatomic, strong) UIFont *indicatorTextFont; // 指示器文字字体
  13. @property (nonatomic, assign) CGFloat indicatorHeight; // 指示器高度
  14. @property (nonatomic, assign) CGFloat indicatorRightMargin; // 指示器距离右边屏幕距离(default有效)
  15. @property (nonatomic, assign) CGFloat indicatorCornerRadius; // 指示器圆角半径(centerToast有效)
  16. @property (nonatomic, strong) UIColor *indexItemBackgroundColor; // 索引元素背景颜色
  17. @property (nonatomic, strong) UIColor *indexItemTextColor; // 索引元素文字颜色
  18. @property (nonatomic, strong) UIFont *indexItemTextFont; // 索引元素文字字体
  19. @property (nonatomic, strong) UIColor *indexItemSelectedBackgroundColor; // 索引元素选中时背景颜色
  20. @property (nonatomic, strong) UIColor *indexItemSelectedTextColor; // 索引元素选中时文字颜色
  21. @property (nonatomic, strong) UIFont *indexItemSelectedTextFont; // 索引元素选中时文字字体
  22. @property (nonatomic, assign) CGFloat indexItemHeight; // 索引元素高度
  23. @property (nonatomic, assign) CGFloat indexItemRightMargin; // 索引元素距离右边屏幕距离
  24. @property (nonatomic, assign) CGFloat indexItemsSpace; // 索引元素之间间隔距离
  25. + (instancetype)configuration;
  26. + (instancetype)configurationWithIndexViewStyle:(SCIndexViewStyle)indexViewStyle;
  27. @end