Post

Replies

Boosts

Views

Activity

AsyncImage Lazy Loading & Caching
I understand that the currently implementation of AsyncImage does not include caching or ways of supplying a cache (is it too late to submit a feedback request for that?) But does AsyncImage support lazy loading or a way of batching loading? Primarily asking before I focus more on a temporary alternative cheers
0
0
866
Jun ’21
AsyncImage - Cancelled Loading before View is Visible
I have been playing around with the new AsyncImage Api in SwiftUI I am using the initialiser that passes in a closure with the AsyncImagePhase, to view why an image may not load, when I looked at the error that is passed in if the phase is failure, the localised description of the error is "Cancelled" but this is happening before the view is being displayed. I am loading these images in a list, I imagine I am probably doing something which is causing the system to decide to cancel the loading, but I cannot see what. Are there any tips to investigate this further?
14
6
11k
Jun ’21