Skip to main content


Showing posts with the label ​Swift​

iOS: How to store your users’ last network request for seamless app launch with Swift

I've got a pretty slow mobile connection, and often get frustrated when I have to stare at a spinner while I'm waiting for some app to load. A great way to improve this would be to save the loaded content into a persistent store, and display that content on next app launch.
This is how the iOS Weather app works. Try to put your phone into airplane mode and launch the app. You will see that it displays all the data it had the previous time you've launched the app, even though you're not connected to the Internet. This leads to a much better user experience, since you're giving users something to look at other than a spinner.
This is especially good with apps that have feeds from the network, since users can see cool content before more content loads.
✔
I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link …