Only seeing updated data for current user when I logout and login again (iOS Swift)

Hi,
I have an “edit profile” section in my app where I can update profile details, like name, job title etc. When I submit updates, they get saved in Backendless, but I don’t see them in the app unless i logout and login again. What am I doing wrong? How do I “reload” the currentUser object?

You should change directly the properties of backendless.userService.currentUser, then update it:

            Types.tryblock({ () -> Void in
            self.backendless.userService.login("bob@foo.com", password: "bob")
            let currentUser = backendless.userService.currentUser
            print("User has been logged in (SYNC): \(currentUser ")
            
            currentUser.setProperty("nick", object: "Cook")
            currentUser = self.backendless.userService.update(currentUser)
            print("User has been updated in (SYNC): \(currentUser )")
            },           
            catchblock: { (exception) -> Void in
                print("Server reported an error: \(exception as! Fault)")
        })

Thanks! And what would the Async example look like?

Yes, I think you can implement it yourself