BarrageTextDescriptor
open class BarrageTextDescriptor : BarrageDescriptor
Undocumented
-
Undocumented
Declaration
Swift
open var textFont: UIFont { get set }
-
Undocumented
Declaration
Swift
open var textColor: UIColor { get set }
-
关闭文字阴影可大幅提升性能, 推荐使用strokeColor, 与shadowColor相比strokeColor性能更强悍
Declaration
Swift
open var textShadowOpened: Bool { get set }
-
默认黑色
Declaration
Swift
open var shadowColor: UIColor?
-
默认CGSizeZero
Declaration
Swift
open var shadowOffset: CGSize
-
默认2.0
Declaration
Swift
open var shadowRadius: CGFloat
-
默认0.5
Declaration
Swift
open var shadowOpacity: Float
-
Undocumented
Declaration
Swift
open var strokeColor: UIColor? { get set }
-
笔画宽度(粗细),取值为整数,负值填充效果,正值中空效果
Declaration
Swift
open var strokeWidth: Int { get set }
-
Undocumented
Declaration
Swift
open var text: String? { get set }
-
Undocumented
Declaration
Swift
open var attributedText: NSAttributedString? { get set }