App Architecture by Chris Eidhof & Matt Gallagher & Florian Kugler

App Architecture by Chris Eidhof & Matt Gallagher & Florian Kugler

Author:Chris Eidhof & Matt Gallagher & Florian Kugler
Language: eng
Format: epub
Publisher: objc.io
Published: 2018-05-14T05:19:20+00:00


Note that we don’t change our cache until we receive the response from the web service. This means that the changes are transactional: only when we get a web service response that deletion succeeded do we delete the data from the cache (and from the view).

In a production app, we’d have to take care of at least two additional tasks: properly handling network errors, and giving the user some indication of the deletion being in progress. Currently, the folder just disappears after the network request has come back, which might be almost instantaneously or take a few seconds, depending on the connection. We’re omitting these tasks in this example for the sake of brevity.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.