mirror of https://github.com/SnapKit/SnapKit
Fix bug not storing constraints
This commit is contained in:
parent
eb107818ac
commit
6d7ba2bd91
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue