Skip to content

Commit 10820a8

Browse files
committed
Bump version to 0.8.0
1 parent 9589a58 commit 10820a8

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ SDWebImageSwiftUI is available through [Swift Package Manager](https://swift.org
6868
```swift
6969
let package = Package(
7070
dependencies: [
71-
.package(url: "https://github.com/SDWebImage/SDWebImageSwiftUI.git", from: "0.6")
71+
.package(url: "https://github.com/SDWebImage/SDWebImageSwiftUI.git", from: "0.8")
7272
],
7373
)
7474
```
@@ -128,7 +128,8 @@ var body: some View {
128128

129129
// Data
130130
AnimatedImage(data: try! Data(contentsOf: URL(fileURLWithPath: "/tmp/foo.webp")))
131-
.customLoopCount(1)
131+
.customLoopCount(1) // Custom loop count
132+
.playbackRate(2.0) // Playback speed rate
132133

133134
// Bundle (not Asset Catalog)
134135
AnimatedImage(name: "animation1", isAnimating: $isAnimating)) // Animation control binding
@@ -142,7 +143,9 @@ var body: some View {
142143

143144
Note: `AnimatedImage` supports both image url or image data for animated image format. Which use the SDWebImage's [Animated ImageView](https://github.com/SDWebImage/SDWebImage/wiki/Advanced-Usage#animated-image-50) for internal implementation. Pay attention that since this base on UIKit/AppKit representable, some advanced SwiftUI layout and animation system may not work as expected. You may need UIKit/AppKit and Core Animation to modify the native view.
144145

145-
Note: From v0.4.0, `AnimatedImage` supports watchOS as well. However, it's not backed by SDWebImage's [Animated ImageView](https://github.com/SDWebImage/SDWebImage/wiki/Advanced-Usage#animated-image-50) like iOS/tvOS/macOS. It use some tricks and hacks because of the limitation on current Apple's API. It also use Image/IO decoding system, which means it supports GIF and APNG format only, but not external format like WebP.
146+
Note: From v0.8.0, `AnimatedImage` on watchOS support all features the same as iOS/tvOS/macOS, including Animated WebP rendering, runloop mode, pausable, purgeable, playback rate, etc. It use the SDWebImage's [Animated Player](https://github.com/SDWebImage/SDWebImage/wiki/Advanced-Usage#animated-player-530), which is the same backend engine for iOS/tvOS/macOS's Animated ImageView.
147+
148+
Note: From v0.4.0, `AnimatedImage` supports watchOS as well. However, it's not backed by SDWebImage's [Animated ImageView](https://github.com/SDWebImage/SDWebImage/wiki/Advanced-Usage#animated-image-50) like iOS/tvOS/macOS. It use some tricks and hacks because of the limitation on current Apple's API. It also use Image/IO decoding system, which means it supports GIF and APNG format only, but not external format like Animated WebP.
146149

147150
### Which View to choose
148151

SDWebImageSwiftUI.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
Pod::Spec.new do |s|
1010
s.name = 'SDWebImageSwiftUI'
11-
s.version = '0.7.0'
11+
s.version = '0.8.0'
1212
s.summary = 'Integration of SDWebImage Asynchronous image loading and SwiftUI framework'
1313

1414
s.description = <<-DESC

SDWebImageSwiftUI/Module/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>0.7.0</string>
18+
<string>0.8.0</string>
1919
<key>CFBundleVersion</key>
2020
<string>$(CURRENT_PROJECT_VERSION)</string>
2121
</dict>

0 commit comments

Comments
 (0)