From ac1937165245e14a147e7e182be06103725cb7dc Mon Sep 17 00:00:00 2001 From: Subhankar Acharya Date: Mon, 20 Jul 2020 15:43:10 +0530 Subject: [PATCH] added constraint --- .../Molecules/DesignedComponents/LockUps/LockupsPlanSMLXL.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/MVMCoreUI/Atomic/Molecules/DesignedComponents/LockUps/LockupsPlanSMLXL.swift b/MVMCoreUI/Atomic/Molecules/DesignedComponents/LockUps/LockupsPlanSMLXL.swift index ba7c7ef7..24c47b46 100644 --- a/MVMCoreUI/Atomic/Molecules/DesignedComponents/LockUps/LockupsPlanSMLXL.swift +++ b/MVMCoreUI/Atomic/Molecules/DesignedComponents/LockUps/LockupsPlanSMLXL.swift @@ -43,6 +43,7 @@ import Foundation open override func setupView() { super.setupView() addSubview(stack) + planLabel.setContentCompressionResistancePriority(.required, for: .horizontal) planLabel.setContentHuggingPriority(.defaultHigh, for: .vertical) planLabel.setContentHuggingPriority(.defaultHigh, for: .horizontal) NSLayoutConstraint.constraintPinSubview(toSuperview: stack)