Skip to content

Instantly share code, notes, and snippets.

@yzhong52
Last active February 16, 2020 16:06
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 yzhong52/cfdc4ca46942777747324be0c6cba036 to your computer and use it in GitHub Desktop.
Save yzhong52/cfdc4ca46942777747324be0c6cba036 to your computer and use it in GitHub Desktop.
Building a Client App From Scratch (ViewController with UITableViewDelegate)
extension ViewController: UITableViewDelegate {
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
let article = articles[indexPath.row]
present(SFSafariViewController(url: article.url), animated: true, completion: nil)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment