Skip to content

Commit b5de0e1

Browse files
committed
Remove duplicate call to service.fetchImage in onAppear to prevent the following error "finished with error [-999] Error Domain=NSURLErrorDomain Code=-999"
1 parent dd92986 commit b5de0e1

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Sources/RemoteImage/public/Views/RemoteImage.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ public struct RemoteImage<ErrorView: View, ImageView: View, LoadingView: View>:
2222
Group {
2323
if service.state == .loading {
2424
loadingView()
25-
.onAppear {
26-
self.service.fetchImage(ofType: self.type)
27-
}
2825
} else {
2926
service.state.error.map { errorView($0) }
3027

0 commit comments

Comments
 (0)