We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d7efec commit d186939Copy full SHA for d186939
Example/SDWebImageSwiftUIDemo/ContentView.swift
@@ -48,6 +48,11 @@ struct ContentView2: View {
48
Group {
49
Text("\(animated ? "AnimatedImage" : "WebImage") - \((imageURLs[imageIndex] as NSString).lastPathComponent)")
50
Spacer()
51
+ #if os(watchOS)
52
+ WebImage(url:URL(string: imageURLs[imageIndex]))
53
+ .resizable()
54
+ .aspectRatio(contentMode: .fit)
55
+ #else
56
if self.animated {
57
AnimatedImage(url:URL(string: imageURLs[imageIndex]))
58
.resizable()
@@ -57,6 +62,7 @@ struct ContentView2: View {
62
63
.aspectRatio(contentMode: .fit)
59
64
}
65
+ #endif
60
66
61
67
Button("Next") {
68
if imageIndex + 1 >= imageURLs.count {
0 commit comments