From the course: Shared Economy for iOS Development

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

DynamoDB data creation

DynamoDB data creation - iOS Tutorial

From the course: Shared Economy for iOS Development

Start my 1-month free trial

DynamoDB data creation

- Okay, so now we're going to switch to our view controller and use the AppSync code in here, so let's import it. So, after line 10 I'm going to put import AWSAppSync and then since our user is likely signed in, we're going to want to sign them out so that we can resign in and create a database. So on line 27 I'll put an else, put AWSMobileClient, sharedInstance and sign out. Notice that there's also sign up. There's also things like forgot password. So you don't have to use the build in UI if you don't want to you can create your own UI and sign up users and all the other functionality. But using the UI that's provided is pretty nice. And you can customize it a little bit. If you want to look into that you can look up the course on AppSync and it goes into a little detail about that background color, logo, that kind of stuff. So we're going to sign the user out and then when they sign back in we want to create a row in the AppUser table. So I'm going to make sure that the uState here…

Contents