parent
0762f51785
commit
b312686347
|
@ -72,7 +72,7 @@ SDWebImageSwiftUI is available through [Swift Package Manager](https://swift.org
|
|||
```swift
|
||||
let package = Package(
|
||||
dependencies: [
|
||||
.package(url: "https://github.com/SDWebImage/SDWebImageSwiftUI.git", from: "0.8")
|
||||
.package(url: "https://github.com/SDWebImage/SDWebImageSwiftUI.git", from: "0.9")
|
||||
],
|
||||
)
|
||||
```
|
||||
|
@ -86,7 +86,7 @@ let package = Package(
|
|||
- [x] Supports success/failure/progress changes event for custom handling
|
||||
- [x] Supports indicator with activity/progress indicator and customization
|
||||
- [x] Supports built-in animation and transition, powered by SwiftUI
|
||||
- [x] Supports animated image as well ! (from v0.9.0)
|
||||
- [x] Supports animated image as well! (from v0.9.0)
|
||||
|
||||
```swift
|
||||
var body: some View {
|
||||
|
@ -109,9 +109,9 @@ var body: some View {
|
|||
}
|
||||
```
|
||||
|
||||
Note: This `WebImage` using `Image` for internal implementation, which is the best compatible for SwiftUI layout and animation system. But it supports static image format only, because unlike `UIImageView` in UIKit, SwiftUI's `Image` does not support animated image or vector image.
|
||||
Note: This `WebImage` using `Image` for internal implementation, which is the best compatible for SwiftUI layout and animation system. In previous version, `WebImage` supports static image format only, because unlike `UIImageView` in UIKit, SwiftUI's `Image` does not support animated image or vector image.
|
||||
|
||||
Note: From v0.9.0, `WebImage` supports animated image as well ! You can use `.animated()` to start animation. This is done by using the native SwiftUI rendering system and SDWebImage's powerful [Animated Player](https://github.com/SDWebImage/SDWebImage/wiki/Advanced-Usage#animated-player-530). But it's still recommend to use `AnimatedImage` for advanced controls like progressive animation rendering, runloop mode, playback rate, etc.
|
||||
Note: From v0.9.0, `WebImage` supports animated image as well! You can use `.animated()` to start animation. This is done by using the native SwiftUI rendering system and SDWebImage's powerful [Animated Player](https://github.com/SDWebImage/SDWebImage/wiki/Advanced-Usage#animated-player-530). But it's still recommend to use `AnimatedImage` for advanced controls like progressive animation rendering, runloop mode, playback rate, etc.
|
||||
|
||||
### Using `AnimatedImage` to play animation
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
Pod::Spec.new do |s|
|
||||
s.name = 'SDWebImageSwiftUI'
|
||||
s.version = '0.8.6'
|
||||
s.version = '0.9.0'
|
||||
s.summary = 'SwiftUI Image loading and Animation framework powered by SDWebImage'
|
||||
|
||||
s.description = <<-DESC
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
<key>CFBundlePackageType</key>
|
||||
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>0.8.6</string>
|
||||
<string>0.9.0</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>$(CURRENT_PROJECT_VERSION)</string>
|
||||
</dict>
|
||||
|
|
Loading…
Reference in New Issue