From the course: Learning AWS Amplify (2020)

Unlock the full course today

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

Model updates

Model updates - Amazon Web Services (AWS) Tutorial

From the course: Learning AWS Amplify (2020)

Start my 1-month free trial

Model updates

- [Instructor] Okay, we're getting really close. Can you smell it? We're almost ready to store data on the server. We just need to do a couple more things to our master view controller, and get it ready. So I'm going to go back to the master view controller. And at the top, I'm going to import AWS app sync. And then, I'm going to create a property in the master view controller to store this app sync. Actually, it's going to be a computer property. So I'll create a couple lines after line 43, and have var AS client, and its type is going to be AWS app sync client, and that'll be an optional. And it's a computer property, so I'll do curly braces. And I'm going to return the app sync client from the app delegate. So to get that, I have to do open paren, UI application dot share to get the singleton, dot delegate, and then I'm going to force cast that as an app delegate. And then an app delegate has a property of AS client, so…

Contents