Sergey Y.
09/08/2020, 9:03 PMjim
09/08/2020, 9:26 PMSergey Y.
09/08/2020, 9:45 PMand if you already have the underlying data, why have a placeholder.True, but I can generate some dummy data while the real one is loading
Sergey Y.
09/08/2020, 9:47 PMSergey Y.
09/08/2020, 9:49 PMForEach(
self.viewModel.isLoading
? placeholderArticles // dummy data
: self.viewModel.articles.filter { !$0.isHidden } // the real data
) { article in
...
.redacted(reason: self.viewModel.isLoading ? .placeholder : [])
...
Sergey Y.
09/08/2020, 9:53 PMZach Klippenstein (he/him) [MOD]
09/08/2020, 9:56 PMSergey Y.
09/08/2020, 9:59 PMSergey Y.
09/08/2020, 10:01 PMTimo Drick
09/09/2020, 10:52 AMTimo Drick
09/09/2020, 10:54 AM