put to public since all subcomponents are required to be accessible to devs.

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2024-04-08 11:26:09 -05:00
parent c0c666c2cb
commit e7220e67a3

View File

@ -93,13 +93,7 @@ open class DropdownSelect: Control {
$0.translatesAutoresizingMaskIntoConstraints = false
$0.axis = .vertical
}
private var titleLabel = Label().with {
$0.setContentCompressionResistancePriority(.required, for: .vertical)
$0.textAlignment = .left
$0.textStyle = .bodySmall
}
var containerView: UIView = UIView().with {
$0.translatesAutoresizingMaskIntoConstraints = false
}
@ -110,44 +104,53 @@ open class DropdownSelect: Control {
$0.spacing = VDSFormControls.spaceInset
}
private var dropdownField = UITextField().with {
$0.translatesAutoresizingMaskIntoConstraints = false
$0.tintColor = UIColor.clear
$0.font = TextStyle.bodyLarge.font
//--------------------------------------------------
// MARK: - Public Properties
//--------------------------------------------------
open var titleLabel = Label().with {
$0.setContentCompressionResistancePriority(.required, for: .vertical)
$0.textAlignment = .left
$0.textStyle = .bodySmall
}
private var inlineDisplayLabel = Label().with {
open var inlineDisplayLabel = Label().with {
$0.textAlignment = .left
$0.textStyle = .boldBodyLarge
$0.lineBreakMode = .byCharWrapping
$0.sizeToFit()
}
private var selectedOptionLabel = Label().with {
open var selectedOptionLabel = Label().with {
$0.setContentCompressionResistancePriority(.required, for: .vertical)
$0.textAlignment = .left
$0.textStyle = .bodyLarge
$0.lineBreakMode = .byCharWrapping
}
private var icon: Icon = Icon().with {
open var icon: Icon = Icon().with {
$0.size = .medium
$0.name = Icon.Name(name: "down-caret")
}
private var errorLabel = Label().with {
open var errorLabel = Label().with {
$0.setContentCompressionResistancePriority(.required, for: .vertical)
$0.textAlignment = .left
$0.textStyle = .bodySmall
}
private var helperLabel = Label().with {
open var helperLabel = Label().with {
$0.setContentCompressionResistancePriority(.required, for: .vertical)
$0.textAlignment = .left
$0.textStyle = .bodySmall
}
private var optionsPicker = UIPickerView()
open var dropdownField = UITextField().with {
$0.translatesAutoresizingMaskIntoConstraints = false
$0.tintColor = UIColor.clear
$0.font = TextStyle.bodyLarge.font
}
open var optionsPicker = UIPickerView()
//--------------------------------------------------
// MARK: - Constraints
@ -376,7 +379,7 @@ open class DropdownSelect: Control {
icon.surface = surface
errorLabel.isHidden = true
}
icon.color = titleLabel.textColorConfiguration.getColor(self)
icon.color = iconColorConfig.getColor(self)
}
open func updateHelperLabel() {