SDWebImage / SDWebImageSwiftUI

SwiftUI Image loading and Animation framework powered by SDWebImage
https://sdwebimage.github.io/SDWebImageSwiftUI
MIT License
2.14k stars 219 forks source link

How to show indicator, the image size is vary #221

Open yosuke1985 opened 2 years ago

yosuke1985 commented 2 years ago

What I want is to show Lottie when the Image is loading.

It needs to set frame size of the Lottie Image. But Later, you'll see the image size after downloaded.

How to get the image size before downloading? or How to show an Indicator(Lottie) fit frame by various images?

Anyone knows, how to solve this issue? Thanks!

dreampiggy commented 2 years ago

Lottie, does this means you write your own Lottie.AnimationView UIView wrapper ?

dreampiggy commented 2 years ago

Maybe the same as https://github.com/SDWebImage/SDWebImageLottiePlugin/issues/6