Building the Shopping List application
In this section, we will design the user interface for our Shopping List application. Let's begin by developing the WatchKit portion of our application.
Before we proceed, we need to create our ShoppingList
project; it is very simple to create using Xcode. Simply follow the steps listed next:
Launch Xcode from the
/Applications
folder.Choose Create a new Xcode project, or go to File | New Project:
Select iOS App with WatchKit App from the list of available templates under the watchOS section, as shown in the following screenshot:
Click on the Next button to proceed to the next step in the wizard.
Next, enter in
ShoppingList
as the name for your project.Select Swift from the Language drop-down menu.
Select iPhone from the Devices drop-down menu.
Ensure that the Include Notification Scene checkbox has been checked.
Click on the Next button to proceed to the next step in the wizard:
Note
The Organization Identifier for your app needs to be unique. Apple recommends...