Skip to content

Instantly share code, notes, and snippets.

@samdods
Created October 31, 2018 11:37
Show Gist options
  • Save samdods/808fdf9fd7874f36d854d987055a5e3a to your computer and use it in GitHub Desktop.
Save samdods/808fdf9fd7874f36d854d987055a5e3a to your computer and use it in GitHub Desktop.
guard let cell = tableView.dequeueReusableCell(withIdentifier: "ProductCell", for: indexPath) as? ProductCell else {
// unlikely to happen, but better safe than sorry!
assertionFailure("Unable to dequeue cell")
return UITableViewCell()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment