Bootstrapping the App

The starting point for the workshop is the Apple Swift UI tutorial at the “Handling User Input” step. I slightly modified the app to make it a SwiftUI-only application. Start with the ZIP file provided below.

  1. Download the project zip file

The file has the following directory structure

Directory Structure

  1. This workshop will start from the Complete version of the tutorial project. In the remaining part of this workshop, $PROJECT_DIRECTORY will refer to ~/Downloads/amplify-ios-workshop/Complete/Landmarks.

    Unzip the file and open the Xcode project:

 # download the workshop ZIP file
 # TODO update download URL when final
 # curl -o ~/Downloads/

 # unzip 
 cd ~/Downloads
 cd amplify-ios-workshop

 # set env variable

 # open xcode 
 open HandlingUserInput.xcodeproj

You can safely ackowledge Xcode’s message informing you this app has been downloaded from Internet.

Xcode warning

  1. In Xcode, Choose the iOS Simulator you want to use (I am using iPhone 14) and click the build icon or press ⌘R.

First build

After a few seconds, you should see the application running in the iOS simulator.

First run

In the following steps, we will guide you through step by step instructions to modify this app to add user authentication and a data-driven API.

If the example application in not starting or not working as described above, do not proceed to the next section. The instructions will fail at some point.

🧷 Project Files: