File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -85,13 +85,15 @@ var body: some View {
85
85
``` swift
86
86
var body: some View {
87
87
Group {
88
- AnimatedImage (url : URL (string : " https://raw.githubusercontent.com/liyong03/YLGIFImage/master/YLGIFImageDemo/YLGIFImageDemo/joy.gif" ))
88
+ AnimatedImage (url : URL (string : " https://raw.githubusercontent.com/liyong03/YLGIFImage/master/YLGIFImageDemo/YLGIFImageDemo/joy.gif" )) // Network
89
89
.onFailure (perform : { (error) in
90
90
// Error
91
91
})
92
92
.scaledToFit ()
93
- AnimatedImage (data : try ! Data (contentsOf : URL (fileURLWithPath : " /tmp/foo.webp" )))
93
+ AnimatedImage (data : try ! Data (contentsOf : URL (fileURLWithPath : " /tmp/foo.webp" ))) // Data
94
94
.customLoopCount (1 )
95
+ AnimatedImage (name : " animation1" ) // Bundle (not Asset Catalog)
96
+ .maxBufferSize (.max )
95
97
}
96
98
}
97
99
```
You can’t perform that action at this time.
0 commit comments