From 1d010d69eaba4f97880f517722de9b80ae84a816 Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Tue, 5 Sep 2023 11:47:58 -0500 Subject: [PATCH] fixed bug for priority on layout Signed-off-by: Matt Bruce --- VDS/Components/TextFields/InputField/InputField.swift | 7 ++++++- VDS/Components/TextFields/TextArea/TextArea.swift | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/VDS/Components/TextFields/InputField/InputField.swift b/VDS/Components/TextFields/InputField/InputField.swift index 1f891b70..94ef5231 100644 --- a/VDS/Components/TextFields/InputField/InputField.swift +++ b/VDS/Components/TextFields/InputField/InputField.swift @@ -129,7 +129,12 @@ open class InputField: EntryFieldBase, UITextFieldDelegate { minWidthConstraint?.isActive = true controlContainerView.addSubview(textField) - textField.pinToSuperView() + textField + .pinTop() + .pinLeading() + .pinTrailingLessThanOrEqualTo(nil, 0, .defaultHigh) + .pinBottom(0, .defaultHigh) + textField.heightAnchor.constraint(equalToConstant: 20).isActive = true textField .textPublisher diff --git a/VDS/Components/TextFields/TextArea/TextArea.swift b/VDS/Components/TextFields/TextArea/TextArea.swift index 69bacccd..7d70cb44 100644 --- a/VDS/Components/TextFields/TextArea/TextArea.swift +++ b/VDS/Components/TextFields/TextArea/TextArea.swift @@ -76,7 +76,12 @@ open class TextArea: EntryFieldBase { minWidthConstraint?.isActive = true controlContainerView.addSubview(textView) - textView.pinToSuperView() + textView + .pinTop() + .pinLeading() + .pinTrailingLessThanOrEqualTo(nil, 0, .defaultHigh) + .pinBottom(0, .defaultHigh) + textViewHeightConstraint = textView.heightAnchor.constraint(greaterThanOrEqualToConstant: 64) textViewHeightConstraint?.isActive = true backgroundColorConfiguration.setSurfaceColors(VDSColor.feedbackSuccessBackgroundOnlight, VDSColor.feedbackSuccessBackgroundOndark, forState: .success)