From 41e6001746e9659c43f91c8b78f2800be57062c7 Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Thu, 11 Apr 2024 15:55:31 -0500 Subject: [PATCH] fixed layout issue for entryfield base Signed-off-by: Matt Bruce --- VDS/Components/TextFields/EntryFieldBase.swift | 2 +- VDS/Components/TextFields/TextArea/TextArea.swift | 10 +--------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/VDS/Components/TextFields/EntryFieldBase.swift b/VDS/Components/TextFields/EntryFieldBase.swift index d2f3a6c7..a32437d4 100644 --- a/VDS/Components/TextFields/EntryFieldBase.swift +++ b/VDS/Components/TextFields/EntryFieldBase.swift @@ -258,7 +258,7 @@ open class EntryFieldBase: Control, Changeable, FormFieldInternalValidatable { //add bottomContainerStackView //this is the vertical stack that contains error text, helper text - bottomContainer.addSubview(bottomContainerStackView) + bottomContainerView.addSubview(bottomContainerStackView) bottomContainerStackView.pinToSuperView() bottomContainerStackView.addArrangedSubview(errorLabel) bottomContainerStackView.addArrangedSubview(helperLabel) diff --git a/VDS/Components/TextFields/TextArea/TextArea.swift b/VDS/Components/TextFields/TextArea/TextArea.swift index 73a1e67c..2b7a96f0 100644 --- a/VDS/Components/TextFields/TextArea/TextArea.swift +++ b/VDS/Components/TextFields/TextArea/TextArea.swift @@ -45,12 +45,6 @@ open class TextArea: EntryFieldBase { } }() - internal var bottomView: UIView = { - return UIView().with { - $0.translatesAutoresizingMaskIntoConstraints = false - } - }() - internal var bottomStackView: UIStackView = { return UIStackView().with { $0.translatesAutoresizingMaskIntoConstraints = false @@ -238,11 +232,9 @@ open class TextArea: EntryFieldBase { /// Container for the area showing helper text, error text, character count, maximum length value. open override func getBottomContainer() -> UIView { - bottomView.addSubview(bottomStackView) - bottomStackView.pinToSuperView() bottomStackView.addArrangedSubview(bottomContainerView) bottomStackView.addArrangedSubview(characterCounterLabel) - return bottomView + return bottomStackView } /// Used to update any Accessibility properties.