Closed glm4 closed 2 years ago
Looks great to me!
Just a flavor question, why are we switching to a a single
completion
callback instead of having bothsuccess
andfailure
?
@germanStabile It is just to leverage the Swift.Result type where declarations become easier and shorter. This is not a mandatory requirement though, you could use 2 closures if you need.
Description:
The proposed soluction in terms of architecture and responsibilities is documented in the diagram below. This can be added later to the README file if needed.
I tested the existing functionalities with a mocked API due to the unavailability of the ios-bases-api heroku app. The Apiary docs can be found here.
Risk: