Last active
February 16, 2020 16:06
-
-
Save yzhong52/cfdc4ca46942777747324be0c6cba036 to your computer and use it in GitHub Desktop.
Building a Client App From Scratch (ViewController with UITableViewDelegate)
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
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