Skip to content

Commit

Permalink
Bumped version to 1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dreampiggy committed Jan 9, 2020
1 parent 90fb58e commit a072c21
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 3 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,26 @@ let image = imageView.image // Image generated by this coder plugin
let imageData = image.sd_imageData(as: .SVG)
```

## Backward Deployment

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.

For CocoaPods user, you can skip the platform version validation in Podfile with:

```ruby
platform :ios, '13.0' # This does not effect your App Target's deployment target version, just a hint for CocoaPods
```

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:

```objective-c
if (@available(iOS 13, *)) {
[SDImageCodersManager.sharedCoder addCoder:SDImageSVGCoder.sharedCoder];
} else {
[SDImageCodersManager.sharedCoder addCoder:SDImageSVGKitCoder.sharedCoder];
}
```

## Screenshot

<img src="https://raw.githubusercontent.com/SDWebImage/SDWebImageSVGCoder/master/Example/Screenshot/SVGDemo.png" width="300" />
Expand Down
2 changes: 1 addition & 1 deletion SDWebImageSVGCoder.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'SDWebImageSVGCoder'
s.version = '1.2.1'
s.version = '1.3.0'
s.summary = 'A SVG coder plugin for SDWebImage, using Apple built-in framework'

# This description is used to generate tags and improve search results.
Expand Down
4 changes: 2 additions & 2 deletions SDWebImageSVGCoder/Module/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.2.1</string>
<string>1.3.0</string>
<key>CFBundleVersion</key>
<string>1.2.1</string>
<string>1.3.0</string>
</dict>
</plist>

0 comments on commit a072c21

Please sign in to comment.