Step 17 of QUICK START GUIDE FOR IOS

Step 17 states: Add the following code register in the backend a new user of your app.

I add this information to my ViewController.swift file:

let backendless = Backendless.sharedInstance()
let user: BackendlessUser = BackendlessUser()
user.email = "michael@backendless.com"
user.password = “my_super_password”
backendless.userService.registering(user)

No where does it mention what framework to import for this file. Am I missing something?

I get an Expected Declaration error at the * on the user.email line. I know I need to enter my own email and password values, but I shouldn’t get an error with just this basic info.

I’m knew to all this.

Thanks for you time.

Hi Gregory,

Steps 7-9 talk about adding the library:
https://backendless.com/mobile-developers/quick-start-guide-for-ios/

Regards,
Mark

Thanks for your quick response.

Already done that. Even made a second project and completed all steps up till Step 17 successfully to verify I didn’t goof.

Same result.

Nevermind! I resolved my problem. I had placed the lines of code outside of a function. Once placed in VIEWDIDLOAD, the errors disappeared.

Thanks.