From bc4aa2c9878d7c29acef52ad4fee89aa2a0f1ce3 Mon Sep 17 00:00:00 2001 From: Kruthika KP <> Date: Thu, 30 Apr 2020 17:54:51 +0530 Subject: [PATCH] bug fix for image distortion in List - Left Variable - Icon - With Right caret molecule. adding image properties --- .../List/LeftVariable/ListLeftVariableIconWithRightCaret.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MVMCoreUI/Atomic/Molecules/DesignedComponents/List/LeftVariable/ListLeftVariableIconWithRightCaret.swift b/MVMCoreUI/Atomic/Molecules/DesignedComponents/List/LeftVariable/ListLeftVariableIconWithRightCaret.swift index 670624ad..ea971cfa 100644 --- a/MVMCoreUI/Atomic/Molecules/DesignedComponents/List/LeftVariable/ListLeftVariableIconWithRightCaret.swift +++ b/MVMCoreUI/Atomic/Molecules/DesignedComponents/List/LeftVariable/ListLeftVariableIconWithRightCaret.swift @@ -39,6 +39,8 @@ import UIKit //------------------------------------------------------- override open func setupView() { super.setupView() + leftImage.addSizeConstraintsForAspectRatio = true + leftImage.contentMode = .scaleAspectFit leftLabel.setContentHuggingPriority(UILayoutPriority(rawValue: 901), for: .horizontal) rightLabel.setContentHuggingPriority(UILayoutPriority(rawValue: 902), for: .horizontal) addMolecule(stack)