From 664d3195bb7b8cf59967337fa596e801d84217fd Mon Sep 17 00:00:00 2001 From: "Pfeil, Scott Robert" Date: Mon, 25 Nov 2019 09:20:05 -0500 Subject: [PATCH] line fix in header --- MVMCoreUI/Molecules/StandardHeaderView.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/MVMCoreUI/Molecules/StandardHeaderView.swift b/MVMCoreUI/Molecules/StandardHeaderView.swift index f00443a8..aa2b52af 100644 --- a/MVMCoreUI/Molecules/StandardHeaderView.swift +++ b/MVMCoreUI/Molecules/StandardHeaderView.swift @@ -26,9 +26,12 @@ public class StandardHeaderView: ViewConstrainingView { bottomMarginPadding = PaddingDefaultVerticalSpacing guard line == nil else { return } - let line = Line(pinTo: self, edge: .bottom, useMargin: true) + let line = Line() line.style = .heavy addSubview(line) + NSLayoutConstraint.pinViewBottom(toSuperview: line, useMargins: false, constant: 0).isActive = true + NSLayoutConstraint.pinViewLeft(toSuperview: line, useMargins: true, constant: 0).isActive = true + NSLayoutConstraint.pinViewRight(toSuperview: line, useMargins: true, constant: 0).isActive = true self.line = line }