From 149fda901dade76e8d8fba89a2d37ece5a1ad93f Mon Sep 17 00:00:00 2001 From: vasavk Date: Thu, 4 Apr 2024 14:17:36 +0530 Subject: [PATCH] Digital ACT-191 ONEAPP-7135 story: Text Overflow handling, did set transparent background if is true --- VDS/Components/DropdownSelect/DropdownSelect.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/VDS/Components/DropdownSelect/DropdownSelect.swift b/VDS/Components/DropdownSelect/DropdownSelect.swift index c70b531d..3e8aac32 100644 --- a/VDS/Components/DropdownSelect/DropdownSelect.swift +++ b/VDS/Components/DropdownSelect/DropdownSelect.swift @@ -132,6 +132,7 @@ open class DropdownSelect: Control { $0.setContentCompressionResistancePriority(.required, for: .vertical) $0.textAlignment = .left $0.textStyle = .bodyLarge + $0.lineBreakMode = .byCharWrapping } private var icon: Icon = Icon().with { @@ -275,7 +276,8 @@ open class DropdownSelect: Control { container.layer.cornerRadius = VDSFormControls.borderradius container.layer.borderColor = readOnly ? readOnlyBorderColorConfiguration.getColor(self).cgColor : (showError ? errorBorderColorConfiguration.getColor(self).cgColor : containerBorderColorConfiguration.getColor(self).cgColor) dropdownField.isUserInteractionEnabled = readOnly ? false : true - + stackView.backgroundColor = transparentBackground ? .clear : surface.color + updateTitleLabel() updateInlineLabel() updateErrorLabel()