Created
March 23, 2020 21:07
-
-
Save reyandrey/1748ed6a3576d4084e91b97706f0d071 to your computer and use it in GitHub Desktop.
TableView
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
func tableView(_ tableView: UITableView, willDisplay cell: UITableViewCell, forRowAt indexPath: IndexPath) { | |
guard tableView.isDragging else { return } | |
cell.transform = CGAffineTransform(scaleX: 0.5, y: 0.5) | |
UIView.animate(withDuration: 0.3, animations: { | |
cell.transform = CGAffineTransform.identity | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment