update for documentation
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
001d6125d6
commit
a02464a7d4
@ -44,27 +44,30 @@ open class TextLinkCaret: ButtonBase, Buttonable {
|
||||
//--------------------------------------------------
|
||||
// MARK: - Private Properties
|
||||
//--------------------------------------------------
|
||||
open override var textStyle: TextStyle {
|
||||
TextStyle.boldBodyLarge
|
||||
private var height: CGFloat {
|
||||
44
|
||||
}
|
||||
|
||||
private var textColorConfiguration = ControlColorConfiguration().with {
|
||||
$0.setSurfaceColors(VDSColor.elementsPrimaryOnlight, VDSColor.elementsPrimaryOndark, forState: .normal)
|
||||
$0.setSurfaceColors(VDSColor.interactiveDisabledOnlight, VDSColor.interactiveDisabledOndark, forState: .disabled)
|
||||
$0.setSurfaceColors(VDSColor.interactiveActiveOnlight, VDSColor.interactiveActiveOndark, forState: .highlighted)
|
||||
}
|
||||
|
||||
private var imageAttribute: CaretLabelAttribute?
|
||||
|
||||
open override var textAttributes: [any LabelAttributeModel]? {
|
||||
guard let imageAttribute else { return nil }
|
||||
return [imageAttribute]
|
||||
}
|
||||
|
||||
//--------------------------------------------------
|
||||
// MARK: - Properties
|
||||
// MARK: - Public Properties
|
||||
//--------------------------------------------------
|
||||
/// The ButtonSize available to this type of Buttonable.
|
||||
public override var availableSizes: [ButtonSize] { [.large] }
|
||||
|
||||
/// Determines icon position of Caret.
|
||||
open var iconPosition: IconPosition = .right { didSet { setNeedsUpdate() } }
|
||||
|
||||
private var height: CGFloat {
|
||||
44
|
||||
open override var textAttributes: [any LabelAttributeModel]? {
|
||||
guard let imageAttribute else { return nil }
|
||||
return [imageAttribute]
|
||||
}
|
||||
|
||||
/// UIColor used on the titleLabel text.
|
||||
@ -72,10 +75,8 @@ open class TextLinkCaret: ButtonBase, Buttonable {
|
||||
textColorConfiguration.getColor(self)
|
||||
}
|
||||
|
||||
private var textColorConfiguration = ControlColorConfiguration().with {
|
||||
$0.setSurfaceColors(VDSColor.elementsPrimaryOnlight, VDSColor.elementsPrimaryOndark, forState: .normal)
|
||||
$0.setSurfaceColors(VDSColor.interactiveDisabledOnlight, VDSColor.interactiveDisabledOndark, forState: .disabled)
|
||||
$0.setSurfaceColors(VDSColor.interactiveActiveOnlight, VDSColor.interactiveActiveOndark, forState: .highlighted)
|
||||
open override var textStyle: TextStyle {
|
||||
TextStyle.boldBodyLarge
|
||||
}
|
||||
|
||||
//--------------------------------------------------
|
||||
|
||||
Loading…
Reference in New Issue
Block a user