SDWebImageSwiftUI icon indicating copy to clipboard operation
SDWebImageSwiftUI copied to clipboard

Indicator Problem

Open halilyuce opened this issue 5 years ago • 5 comments

Hello, today I updated pods and after last release activity indicator is not working and when I tried to use it my project is crashing.

precondition failure: attribute failed to set an initial value: 115

Button(action: {
    self.username = self.authVM.user.username!
    self.openSheet.toggle()
}) {
    WebImage(url: URL(string: self.authVM.user.avatar!.userAvatarPathSmall()))
        .resizable()
        .indicator(.activity)
        .frame(width: 32, height: 32).cornerRadius(16)
}.buttonStyle(PlainButtonStyle())

halilyuce avatar Jun 03 '20 13:06 halilyuce

You need to clean and recompile. This looks like something inside SwiftUI

dreampiggy avatar Jun 04 '20 02:06 dreampiggy

You need to clean and recompile. This looks like something inside SwiftUI

I tried clean and recompile again and same error unfortunately :/

halilyuce avatar Jun 04 '20 11:06 halilyuce

What's the version before you bump to the latest version ? I can have a check at code diff in indicator.

dreampiggy avatar Jun 05 '20 07:06 dreampiggy

What's the version before you bump to the latest version ? I can have a check at code diff in indicator.

Here it is, I'm using activator on every image and this problem only occurs image that I used at navigation bar item.

image

halilyuce avatar Jun 05 '20 11:06 halilyuce

i have the same issue after updteing pod app get crash when try load images WebImage(url:url) .indicator(.progress(style: .default))

image

mennyaL avatar Feb 06 '23 21:02 mennyaL