Creating a new TableViewController

In this section, instead of the default ViewController, you're going to use a new TableViewController for the main screen:

  1. Remove the ViewController.swift file XCode created for you.
  2. Add a new MainScreenViewController.swift file to your project:
// File: MainScreenViewController.swiftimport UIKitclass MainScreenViewController: UITableViewController {    override func viewDidLoad() {        super.viewDidLoad()    }}
  1. In storyboard, delete the View Controller item from View Controller Scene:

  1. Go View | Libraries | Show Library or Ctrl + command + L to reveal the Library tray:
  1. Alternatively, you can click on the

Get Hands-On Server-Side Web Development with Swift now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.