This commit is contained in:
Kevin G Christiano 2020-03-25 17:39:33 -04:00
parent 60199831a3
commit 3249c9d68b

View File

@ -37,12 +37,10 @@ import UIKit
if self.previousIndex != NSNotFound {
self.delegateObject?.moleculeDelegate?.removeMolecules(model.molecules[self.previousIndex], animation: .fade)
// self.delegateObject?.moleculeDelegate?.removeMolecules(json2d[self.previousIndex], animation: .fade)
}
if let indexPath = self.delegateObject?.moleculeDelegate?.getIndexPath(for: model) {
self.delegateObject?.moleculeDelegate?.addMolecules(model.molecules[index], indexPath: indexPath, animation: .fade)
// self.delegateObject?.moleculeDelegate?.addMolecules(json2d[index], animation: .fade)
}
self.previousIndex = index
}