I am following this Getting Started guide for building an iOS app using the AWS Amplify CLI and the AWS SDK for iOS.
And I had previously followed the steps in this Apple Getting Started guide for simply creating the basic framework for a Single View Application.
Everything works without a hitch: I was able to build my empty project in Xcode, launch the simulator, see my white blank screen, both before and after starting the AWS iOS SDK Swift tutorial.
My problem is that the AWS tutorial presumes more Swift knowledge than I have. So when it says the following toward the end—
Call the runMutation(), runQuery(), and subscribe() methods from your app code, such as from a button click or when your app starts in viewDidLoad().
—the guide has essentially skipped some steps.
I've already created the required AWS resources for this tutorial but I don't know how to call the functions and update the DynamoDB table that gets set up.
Assuming I can add two text fields to the UI View (one for the ToDo 'name' and one for the 'description') and tie a button to them, can someone help me go the rest of the way?
UPDATE Answered below. I received a down-vote for asking this question, but one might argue that a Getting Started guide should be self-contained. No biggie; I worked across the two tutorials and solved my problem and posted an answer for those who are confused as I was.