From 46c02e3cc9c8426de534c6b00e961d4f95ce184a Mon Sep 17 00:00:00 2001 From: Robert Payne Date: Tue, 20 Sep 2016 16:57:16 +1200 Subject: [PATCH] Fix edges to edges for macOS --- Source/Constraint.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/Constraint.swift b/Source/Constraint.swift index de19995..b93a8d9 100644 --- a/Source/Constraint.swift +++ b/Source/Constraint.swift @@ -118,7 +118,9 @@ public class Constraint { layoutToAttribute = layoutFromAttribute } #else - if layoutToAttributes.count > 0 { + if self.from.attributes == self.to.attributes { + layoutToAttribute = layoutFromAttribute + } else if layoutToAttributes.count > 0 { layoutToAttribute = layoutToAttributes[0] } else { layoutToAttribute = layoutFromAttribute