From 6d7ba2bd91f2ce976dcad8554ca99d3216804c95 Mon Sep 17 00:00:00 2001 From: Robert Payne Date: Thu, 24 Nov 2016 00:16:39 +1300 Subject: [PATCH] Fix bug not storing constraints --- Source/LayoutConstraintItem.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/LayoutConstraintItem.swift b/Source/LayoutConstraintItem.swift index 2f4c65d..a59de6b 100644 --- a/Source/LayoutConstraintItem.swift +++ b/Source/LayoutConstraintItem.swift @@ -63,14 +63,14 @@ extension LayoutConstraintItem { } internal func add(constraints: [Constraint]) { - let constraintsSet = NSMutableSet() + let constraintsSet = self.constraintsSet for constraint in constraints { constraintsSet.add(constraint) } } internal func remove(constraints: [Constraint]) { - let constraintsSet = NSMutableSet() + let constraintsSet = self.constraintsSet for constraint in constraints { constraintsSet.remove(constraint) }