Skip to content

Commit 92704a2

Browse files
committed
Add file extensions
1 parent 119eddc commit 92704a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ var body: some View {
208208
.playbackRate(2.0) // Playback speed rate
209209

210210
// Bundle (not Asset Catalog)
211-
AnimatedImage(name: "animation1", isAnimating: $isAnimating) // Animation control binding
211+
AnimatedImage(name: "animation1.gif", isAnimating: $isAnimating) // Animation control binding
212212
.maxBufferSize(.max)
213213
.onViewUpdate { view, context in // Advanced native view coordinate
214214
// AppKit tooltip for mouse hover
@@ -230,7 +230,7 @@ Note: some of methods on `AnimatedImage` will return `some View`, a new Modified
230230

231231
```swift
232232
var body: some View {
233-
AnimatedImage(name: "animation2") // Just for showcase, don't mix them at the same time
233+
AnimatedImage(name: "animation2.gif") // Just for showcase, don't mix them at the same time
234234
.indicator(SDWebImageProgressIndicator.default) // UIKit indicator component
235235
.indicator(Indicator.progress) // SwiftUI indicator component
236236
.transition(SDWebImageTransition.flipFromLeft) // UIKit animation transition

0 commit comments

Comments
 (0)