Adding labels, a button, and a map
We have done this so often already that you might guess what we have to do first. That's right, we need a test case class for our tests. Select the ToDoTests group in the project navigator in Xcode and add a new Unit Test Case Class called ToDoItemDetailsViewControllerTests. Make sure that it is added to the unit test target:
Figure 8.1 – The test case needs to be added to the unit test target
Remove the two template tests in the created test case class and add @testable import ToDo below the existing import statement:
// ToDoItemDetailsViewControllerTests.swift
import XCTest
@testable import ToDo
class ToDoItemDetailsViewControllerTests: XCTestCase {
override func setUpWithError() throws {
}
override func tearDownWithError() throws {
}
}
The details view needs some labels to show the information of the to-do item. Let's start with the label for the...