@@ -14,23 +14,24 @@ NS_ASSUME_NONNULL_BEGIN
1414@class M80AttributedLabelURL;
1515
1616@interface M80AttributedLabel : UIView
17- @property (nonatomic ,weak ,nullable ) id <M80AttributedLabelDelegate> delegate;
18- @property (nonatomic ,strong ,nullable ) UIFont *font; // 字体
19- @property (nonatomic ,strong ,nullable ) UIColor *textColor; // 文字颜色
20- @property (nonatomic ,strong ,nullable ) UIColor *highlightColor; // 链接点击时背景高亮色
21- @property (nonatomic ,strong ,nullable ) UIColor *linkColor; // 链接色
22- @property (nonatomic ,strong ,nullable ) UIColor *shadowColor; // 阴影颜色
23- @property (nonatomic ,assign ) CGSize shadowOffset; // 阴影offset
24- @property (nonatomic ,assign ) CGFloat shadowBlur; // 阴影半径
25- @property (nonatomic ,assign ) BOOL underLineForLink; // 链接是否带下划线
26- @property (nonatomic ,assign ) BOOL autoDetectLinks; // 自动检测
27- @property (nonatomic ,assign ) NSInteger numberOfLines; // 行数
28- @property (nonatomic ,assign ) CTTextAlignment textAlignment; // 文字排版样式
29- @property (nonatomic ,assign ) CTLineBreakMode lineBreakMode; // LineBreakMode
30- @property (nonatomic ,assign ) CGFloat lineSpacing; // 行间距
31- @property (nonatomic ,assign ) CGFloat paragraphSpacing; // 段间距
32- @property (nonatomic ,copy ,nullable ) NSString *text; // 普通文本
33- @property (nonatomic ,copy ,nullable ) NSAttributedString *attributedText; // 属性文本
17+ @property (nonatomic ,weak ,nullable ) id <M80AttributedLabelDelegate> delegate;
18+ @property (nonatomic ,strong ,nullable ) UIFont *font; // 字体
19+ @property (nonatomic ,strong ,nullable ) UIColor *textColor; // 文字颜色
20+ @property (nonatomic ,strong ,nullable ) UIColor *highlightColor; // 链接点击时背景高亮色
21+ @property (nonatomic ,strong ,nullable ) UIColor *linkColor; // 链接色
22+ @property (nonatomic ,strong ,nullable ) UIColor *shadowColor; // 阴影颜色
23+ @property (nonatomic ,assign ) CGSize shadowOffset; // 阴影offset
24+ @property (nonatomic ,assign ) CGFloat shadowBlur; // 阴影半径
25+ @property (nonatomic ,assign ) BOOL underLineForLink; // 链接是否带下划线
26+ @property (nonatomic ,assign ) BOOL autoDetectLinks; // 自动检测
27+ @property (nonatomic ,assign ) NSInteger numberOfLines; // 行数
28+ @property (nonatomic ,assign ) CTTextAlignment textAlignment; // 文字排版样式
29+ @property (nonatomic ,assign ) CTLineBreakMode lineBreakMode; // LineBreakMode
30+ @property (nonatomic ,assign ) CGFloat lineSpacing; // 行间距
31+ @property (nonatomic ,assign ) CGFloat paragraphSpacing; // 段间距
32+ @property (nonatomic ,copy ,nullable ) NSString *text; // 普通文本
33+ @property (nonatomic ,copy ,nullable ) NSAttributedString *attributedText; // 属性文本
34+ @property (nonatomic ,assign ) NSUInteger maxSyncDetectLength; // UI 线程做 link 检查的文字最大长度
3435
3536
3637
0 commit comments