Fix bug not storing constraints

This commit is contained in:
Robert Payne 2016-11-24 00:16:39 +13:00
parent eb107818ac
commit 6d7ba2bd91
1 changed files with 2 additions and 2 deletions

View File

@ -63,14 +63,14 @@ extension LayoutConstraintItem {
} }
internal func add(constraints: [Constraint]) { internal func add(constraints: [Constraint]) {
let constraintsSet = NSMutableSet() let constraintsSet = self.constraintsSet
for constraint in constraints { for constraint in constraints {
constraintsSet.add(constraint) constraintsSet.add(constraint)
} }
} }
internal func remove(constraints: [Constraint]) { internal func remove(constraints: [Constraint]) {
let constraintsSet = NSMutableSet() let constraintsSet = self.constraintsSet
for constraint in constraints { for constraint in constraints {
constraintsSet.remove(constraint) constraintsSet.remove(constraint)
} }