V8tr / AsyncImage

Asynchronous Image Loading from URL in SwiftUI
https://www.vadimbulavin.com/
The Unlicense
274 stars 36 forks source link

WidgetExtension compatibility #7

Open taher-mosbah opened 4 years ago

taher-mosbah commented 4 years ago

Hello, Thanks for the example !

I was trying to use your code for an iOS 14 widget extension but the ImageLoader gets deallocated too soon, any ideas ? maybe a limitation in how WidgetExtension works ?

Screenshot 2020-07-02 at 18 07 43

atulkhatri commented 4 years ago

I'm facing similar issue. @taher-mosbah Did you get it to work somehow? Any alternatives?

taher-mosbah commented 4 years ago

No no luck, one possible solution I didn't get time to explore is to use onBackgroundURLSessionEvents

yreaction commented 4 years ago

Hey guys, did you get it working? The request is done but as you said it get deinit instantly. So looks like there's now way to use Combine approach for this.

tatealive commented 4 years ago

Did anyone ever find a workaround for this?

V8tr commented 4 years ago

I've posted an update with iOS 14 fixes, but haven't checked widgets support. I'd very grateful if you happen to find some time to check whether this solves your issue with widgets.

zero0cool0 commented 4 years ago

@V8tr - unfortunately the updates posted with iOS14 fixes do not resolve the issues for me. The imageLoader gets deallocated too soon.