Created
February 8, 2017 07:28
-
-
Save madhu314/686aa00b7e16f51373b4969243d0fcc8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cell.deletedClosure = { listItem in | |
UIView.animate(withDuration: 0.3, delay: 0.0, usingSpringWithDamping: 1, initialSpringVelocity: 0.5, options: .curveEaseIn, animations: { | |
self.decorateReadyToMove(for: cell, andAngle: 0) | |
cell.transform = CGAffineTransform(scaleX: 0.01, y: 1) | |
}, completion: { (_) in | |
cell.transform = CGAffineTransform(scaleX: 0.01, y: 0.01) | |
cell.alpha = 0 | |
self.listItemDataset.remove(item: listItem, on: self.collectionView) | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment