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.