Skip to content
This repository has been archived by the owner on Oct 1, 2022. It is now read-only.

Support for AsyncImage wrapper or view modifier #10

Closed
Cyclic opened this issue Jun 28, 2021 · 3 comments
Closed

Support for AsyncImage wrapper or view modifier #10

Cyclic opened this issue Jun 28, 2021 · 3 comments

Comments

@Cyclic
Copy link

Cyclic commented Jun 28, 2021

It would be nice if this package implemented the same features, such as the caching and gif support, using the new, OOB, AsyncImage in SwiftUI. Perhaps using phases?

@kean
Copy link
Owner

kean commented Jun 29, 2021

Could you please elaborate? GIF support, caching is what AsyncImage doesn't support and NukeUI does.

@Cyclic
Copy link
Author

Cyclic commented Jun 29, 2021

In other words, rather than a new type, if you can create a view modifier for the new AsyncImage, which enables caching, and gif animations, and uses the new phases of AsyncImage to do it, it would be nice. If you cannot use a view modifier, then I was thinking you might just inherit from AsyncImage. Would animated gifs work with the canvas feature? I only bring this up as an additional solution since the work for async image is already implemented.

@kean
Copy link
Owner

kean commented Jul 8, 2021

Hey, I think trying to add something on top of AsyncImage is not possible. NukeUI provides a custom component (LazyImage) that does what AsyncImage does and much more.

@kean kean closed this as completed Jul 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants