Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- createUser(username: "Foo", email: "Foo@gmail.com", password: "Bar")
- .then { user in
- return self.login(user)
- }
- .then { _ in
- return self.goToHomeScreen()
- }
- .then { _ in
- print("All done!")
- }
- .catch { error in
- print(error)
- }
Add Comment
Please, Sign In to add comment