Please add onStart to SwiftUI.LazyImage.
See an example below.
@State private var isLoading: Bool = false
Button {
viewStore.send(.tapped)
} label: {
LazyImage(url: viewStore.imageURL) { state in
...
}
.onStart { isLoading = true }
.onCompletion { _ in isLoading = false }
}
.disabled(isLoading)
Please add
onStarttoSwiftUI.LazyImage.See an example below.