From 7a48633cce0e2f1f3879cb0477607d8738cc11b8 Mon Sep 17 00:00:00 2001 From: "Khan, Arshad" Date: Fri, 10 Jan 2020 10:59:13 -0500 Subject: [PATCH] Implemented Ryan's feedback, as Prateek is out of office for next week. --- .../HeadLineBodyCaretLinkImage.swift | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/MVMCoreUI/Molecules/VerticalCombinationViews/HeadLineBodyCaretLinkImage.swift b/MVMCoreUI/Molecules/VerticalCombinationViews/HeadLineBodyCaretLinkImage.swift index 33492541..80eaf69e 100644 --- a/MVMCoreUI/Molecules/VerticalCombinationViews/HeadLineBodyCaretLinkImage.swift +++ b/MVMCoreUI/Molecules/VerticalCombinationViews/HeadLineBodyCaretLinkImage.swift @@ -13,7 +13,6 @@ import Foundation let caretButton = CaretButton(frame: .zero) let backgroundImageView = MFLoadImageView() var spaceBetweenConstant: CGFloat = 104.0 - var spaceBetweenViews: NSLayoutConstraint? var leftConstraintHeadline : NSLayoutConstraint? var leftConstraintCaretView : NSLayoutConstraint? let padding = MFStyler.defaultHorizontalPaddingForApplicationWidth() @@ -48,9 +47,6 @@ import Foundation headLineBodyWidth.priority = .defaultHigh headLineBodyWidth.isActive = true headlineBody.widthAnchor.constraint(lessThanOrEqualToConstant: maxWidth).isActive = true - - spaceBetweenViews = caretButton.topAnchor.constraint(greaterThanOrEqualTo: headlineBody.bottomAnchor, constant: spaceBetweenConstant) - spaceBetweenViews?.isActive = true //Caret view caretButton.translatesAutoresizingMaskIntoConstraints = false @@ -58,9 +54,7 @@ import Foundation leftConstraintCaretView?.isActive = true view.bottomAnchor.constraint(equalTo: caretButton.bottomAnchor).isActive = true - let constraint = view.rightAnchor.constraint(greaterThanOrEqualTo: headlineBody.rightAnchor) - constraint.priority = .defaultLow - constraint.isActive = true + caretButton.topAnchor.constraint(greaterThanOrEqualTo: headlineBody.bottomAnchor, constant: spaceBetweenConstant).isActive = true //Background image view backgroundImageView.translatesAutoresizingMaskIntoConstraints = false