Skip to content

Commit 269a150

Browse files
committed
Bump version to 0.1.2
update the README
1 parent e9c28e5 commit 269a150

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ Note we do not guarantee the public API stable for current status. Since SwiftUI
2626
+ macOS 10.15+
2727
+ tvOS 13+
2828
+ watchOS 6+
29+
+ Swift 5.1+
2930

3031
## Installation
3132

@@ -64,9 +65,12 @@ let package = Package(
6465

6566
It supports the placeholder and detail options control for image loading as SDWebImage.
6667

68+
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.
69+
6770
```swift
6871
var body: some View {
6972
WebImage(url: URL(string: "https://nokiatech.github.io/heif/content/images/ski_jump_1440x960.heic"))
73+
.resizable()
7074
.scaledToFit()
7175
.frame(width: 300, height: 300, alignment: .center)
7276
}
@@ -77,11 +81,13 @@ var body: some View {
7781
```swift
7882
var body: some View {
7983
AnimatedImage(url: URL(string: "https://raw.githubusercontent.com/liyong03/YLGIFImage/master/YLGIFImageDemo/YLGIFImageDemo/joy.gif"))
84+
.scaledToFit()
8085
AnimatedImage(data: try! Data(contentsOf: URL(fileURLWithPath: "/tmp/foo.webp")))
86+
.scaledToFill()
8187
}
8288
```
8389

84-
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.
90+
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.
8591

8692
## Demo
8793

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.1.1'
11+
s.version = '0.1.2'
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.1.1</string>
18+
<string>0.1.2</string>
1919
<key>CFBundleVersion</key>
2020
<string>$(CURRENT_PROJECT_VERSION)</string>
2121
</dict>

0 commit comments

Comments
 (0)