diff --git a/README.md b/README.md
index 8d500c7..7320530 100644
--- a/README.md
+++ b/README.md
@@ -26,6 +26,7 @@ Note we do not guarantee the public API stable for current status. Since SwiftUI
+ macOS 10.15+
+ tvOS 13+
+ watchOS 6+
++ Swift 5.1+
## Installation
@@ -64,9 +65,12 @@ let package = Package(
It supports the placeholder and detail options control for image loading as SDWebImage.
+Note: Unlike `UIImageView` in UIKit, SwiftUI's `Image` does not support animation. This `WebImage` using `Image` for internal implementation and supports static image format only.
+
```swift
var body: some View {
WebImage(url: URL(string: "https://nokiatech.github.io/heif/content/images/ski_jump_1440x960.heic"))
+ .resizable()
.scaledToFit()
.frame(width: 300, height: 300, alignment: .center)
}
@@ -77,11 +81,13 @@ var body: some View {
```swift
var body: some View {
AnimatedImage(url: URL(string: "https://raw.githubusercontent.com/liyong03/YLGIFImage/master/YLGIFImageDemo/YLGIFImageDemo/joy.gif"))
+ .scaledToFit()
AnimatedImage(data: try! Data(contentsOf: URL(fileURLWithPath: "/tmp/foo.webp")))
+ .scaledToFill()
}
```
-It 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.
+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.
## Demo
diff --git a/SDWebImageSwiftUI.podspec b/SDWebImageSwiftUI.podspec
index 21b5ef4..c2523e4 100644
--- a/SDWebImageSwiftUI.podspec
+++ b/SDWebImageSwiftUI.podspec
@@ -8,7 +8,7 @@
Pod::Spec.new do |s|
s.name = 'SDWebImageSwiftUI'
- s.version = '0.1.1'
+ s.version = '0.1.2'
s.summary = 'Integration of SDWebImage Asynchronous image loading and SwiftUI framework'
s.description = <<-DESC
diff --git a/SDWebImageSwiftUI/Module/Info.plist b/SDWebImageSwiftUI/Module/Info.plist
index 2748962..78e6f60 100644
--- a/SDWebImageSwiftUI/Module/Info.plist
+++ b/SDWebImageSwiftUI/Module/Info.plist
@@ -15,7 +15,7 @@
CFBundlePackageType
$(PRODUCT_BUNDLE_PACKAGE_TYPE)
CFBundleShortVersionString
- 0.1.1
+ 0.1.2
CFBundleVersion
$(CURRENT_PROJECT_VERSION)