Skip to content

Commit a072c21

Browse files
committed
Bumped version to 1.3.0
1 parent 90fb58e commit a072c21

File tree

3 files changed

+23
-3
lines changed

3 files changed

+23
-3
lines changed

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,26 @@ let image = imageView.image // Image generated by this coder plugin
148148
let imageData = image.sd_imageData(as: .SVG)
149149
```
150150

151+
## Backward Deployment
152+
153+
This framework supports backward deployment on iOS 12-/macOS 10.14-. And you can combine both `SDWebImageSVGCoder` for higher firmware version, use `SDWebImageSVGKitPlugin` for lower firmware version.
154+
155+
For CocoaPods user, you can skip the platform version validation in Podfile with:
156+
157+
```ruby
158+
platform :ios, '13.0' # This does not effect your App Target's deployment target version, just a hint for CocoaPods
159+
```
160+
161+
Pay attention, you should always use the runtime version check to ensure those symbols are available, you should mark all the classes use public API with `API_AVAILABLE` annotation as well. See below:
162+
163+
```objective-c
164+
if (@available(iOS 13, *)) {
165+
[SDImageCodersManager.sharedCoder addCoder:SDImageSVGCoder.sharedCoder];
166+
} else {
167+
[SDImageCodersManager.sharedCoder addCoder:SDImageSVGKitCoder.sharedCoder];
168+
}
169+
```
170+
151171
## Screenshot
152172

153173
<img src="https://raw.githubusercontent.com/SDWebImage/SDWebImageSVGCoder/master/Example/Screenshot/SVGDemo.png" width="300" />

SDWebImageSVGCoder.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 = 'SDWebImageSVGCoder'
11-
s.version = '1.2.1'
11+
s.version = '1.3.0'
1212
s.summary = 'A SVG coder plugin for SDWebImage, using Apple built-in framework'
1313

1414
# This description is used to generate tags and improve search results.

SDWebImageSVGCoder/Module/Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>1.2.1</string>
18+
<string>1.3.0</string>
1919
<key>CFBundleVersion</key>
20-
<string>1.2.1</string>
20+
<string>1.3.0</string>
2121
</dict>
2222
</plist>

0 commit comments

Comments
 (0)