Skip to content

Instantly share code, notes, and snippets.

@hsleedevelop
Last active November 22, 2018 07:48
Show Gist options
  • Save hsleedevelop/73c509014cd622985eb8f4189319547e to your computer and use it in GitHub Desktop.
Save hsleedevelop/73c509014cd622985eb8f4189319547e to your computer and use it in GitHub Desktop.
check the cell is visible cell in tableView
//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