SwiftUI
How to Retain Your Users While Loading Data in SwiftUI
Custom placeholders for making the wait more pleasant
Waiting is boring.
None of us like it.
But sometimes we have to.
In 1993, an article named Response Times: The 3 Important Limits by User Experience world-reference Nielsen Group stated the following:
1 second is about the limit for the user’s flow of thought to stay uninterrupted, even though the user will notice the delay.
10 seconds is about the limit for keeping the user’s attention focused on the dialogue. For longer delays, users will want to perform other tasks while waiting for the computer to finish.
This remains valid in 2020: Response time when waiting for an event to occur sounds like a big deal.
How can you deal with it? In terms of programming, some solutions can be introduced to reduce response times: storing data locally, moving weighted tasks to the background, etc.
But even applying those improvements, sometimes there won’t be another scenario apart from waiting. And in that case, the interface must respond in consequence.
In cases where the computer cannot provide fairly immediate response, continuous feedback should be provided to the user — Jakob Nielsen