update for documentation

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2023-08-29 16:23:12 -05:00
parent 001d6125d6
commit a02464a7d4

View File

@ -44,27 +44,30 @@ open class TextLinkCaret: ButtonBase, Buttonable {
//-------------------------------------------------- //--------------------------------------------------
// MARK: - Private Properties // MARK: - Private Properties
//-------------------------------------------------- //--------------------------------------------------
open override var textStyle: TextStyle { private var height: CGFloat {
TextStyle.boldBodyLarge 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? 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. /// The ButtonSize available to this type of Buttonable.
public override var availableSizes: [ButtonSize] { [.large] } public override var availableSizes: [ButtonSize] { [.large] }
/// Determines icon position of Caret.
open var iconPosition: IconPosition = .right { didSet { setNeedsUpdate() } } open var iconPosition: IconPosition = .right { didSet { setNeedsUpdate() } }
private var height: CGFloat { open override var textAttributes: [any LabelAttributeModel]? {
44 guard let imageAttribute else { return nil }
return [imageAttribute]
} }
/// UIColor used on the titleLabel text. /// UIColor used on the titleLabel text.
@ -72,10 +75,8 @@ open class TextLinkCaret: ButtonBase, Buttonable {
textColorConfiguration.getColor(self) textColorConfiguration.getColor(self)
} }
private var textColorConfiguration = ControlColorConfiguration().with { open override var textStyle: TextStyle {
$0.setSurfaceColors(VDSColor.elementsPrimaryOnlight, VDSColor.elementsPrimaryOndark, forState: .normal) TextStyle.boldBodyLarge
$0.setSurfaceColors(VDSColor.interactiveDisabledOnlight, VDSColor.interactiveDisabledOndark, forState: .disabled)
$0.setSurfaceColors(VDSColor.interactiveActiveOnlight, VDSColor.interactiveActiveOndark, forState: .highlighted)
} }
//-------------------------------------------------- //--------------------------------------------------