Last active
November 22, 2018 07:48
-
-
Save hsleedevelop/73c509014cd622985eb8f4189319547e to your computer and use it in GitHub Desktop.
check the cell is visible cell in tableView
This file contains 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
//validate tpo cell in visible cells, | |
guard let tableView = self.superview as? UITableView, let ip = self.indexPath, tableView.indexPathsForVisibleRows?.contains(ip) == true else { | |
return | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment