Skip to content

Instantly share code, notes, and snippets.

@koromiko
Created October 5, 2017 12:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save koromiko/df132d8c3b00df3e7a97ca26f5d498a7 to your computer and use it in GitHub Desktop.
Save koromiko/df132d8c3b00df3e7a97ca26f5d498a7 to your computer and use it in GitHub Desktop.
func tableView(_ tableView: UITableView, willSelectRowAt indexPath: IndexPath) -> IndexPath? {
self.viewModel.userPressed(at: indexPath)
if viewModel.isAllowSegue {
return indexPath
}else {
return nil
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment