Building the Health Monitor application
In this section, we will look at designing our user interface for our Health Monitor application. We will begin by developing the WatchKit portion of our application.
Before proceeding, we need to create our HealthMonitor
project 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 the iOS App with WatchKit App option 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
HealthMonitor
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 selected.
- 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...