FWBarrageTextDescriptor

@interface FWBarrageTextDescriptor : FWBarrageDescriptor {
    NSMutableDictionary *_textAttribute;
}

@property (nonatomic, strong, nullable) UIFont *textFont;
@property (nonatomic, strong, nullable) UIColor *textColor;

/*
 * 关闭文字阴影可大幅提升性能, 推荐使用strokeColor, 与shadowColor相比strokeColor性能更强悍
 */
@property (nonatomic, assign) BOOL textShadowOpened;//默认NO
@property (nonatomic, strong, nullable) UIColor *shadowColor;//默认黑色
@property (nonatomic, assign) CGSize shadowOffset;//默认CGSizeZero
@property (nonatomic, assign) CGFloat shadowRadius;//默认2.0
@property (nonatomic, assign) CGFloat shadowOpacity;//默认0.5

@property (nonatomic, strong, nullable) UIColor *strokeColor;
@property (nonatomic, assign) int strokeWidth;//笔画宽度(粗细),取值为 NSNumber 对象(整数),负值填充效果,正值中空效果

@property (nonatomic, copy, nullable) NSString *text;
@property (nonatomic, copy, nullable) NSAttributedString *attributedText;

@end

Undocumented

  • Undocumented

    Declaration

    Objective-C

    NSMutableDictionary *_textAttribute
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) UIFont *textFont
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) UIColor *textColor
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) BOOL textShadowOpened
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) UIColor *shadowColor
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) CGSize shadowOffset
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) CGFloat shadowRadius
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) CGFloat shadowOpacity
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) UIColor *strokeColor
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) int strokeWidth
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) NSString *text
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) NSAttributedString *attributedText