From 3dd9decfed16043a881a248d00cdc6c3dbc61b40 Mon Sep 17 00:00:00 2001 From: Kevin G Christiano Date: Thu, 12 Dec 2019 14:53:52 -0500 Subject: [PATCH] Removed height constraint. This class will expect text to function properly. --- MVMCoreUI/Atoms/Views/CheckboxWithLabelView.swift | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/MVMCoreUI/Atoms/Views/CheckboxWithLabelView.swift b/MVMCoreUI/Atoms/Views/CheckboxWithLabelView.swift index 404764fe..7d60d1bf 100644 --- a/MVMCoreUI/Atoms/Views/CheckboxWithLabelView.swift +++ b/MVMCoreUI/Atoms/Views/CheckboxWithLabelView.swift @@ -44,8 +44,6 @@ guard subviews.isEmpty else { return } - translatesAutoresizingMaskIntoConstraints = false - addSubview(checkbox) addSubview(label) @@ -66,12 +64,10 @@ label.leadingAnchor.constraint(equalTo: checkbox.trailingAnchor, constant: PaddingTwo).isActive = true layoutMarginsGuide.bottomAnchor.constraint(greaterThanOrEqualTo: label.bottomAnchor).isActive = true - let bottomLabelConstraint = layoutMarginsGuide.bottomAnchor.constraint(equalTo: label.bottomAnchor) + bottomLabelConstraint.priority = .defaultLow bottomLabelConstraint.isActive = true - label.heightAnchor.constraint(greaterThanOrEqualToConstant: 15).isActive = true - alignCheckbox(.center) }