Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import PackageDescription
let package = Package(
name: "SDWebImageSVGCoder",
platforms: [
.macOS(.v10_15), .iOS(.v13), .tvOS(.v13), .watchOS(.v6)
.macOS(.v10_15), .iOS("15.0"), .tvOS(.v13), .watchOS(.v6)
],
products: [
// Products define the executables and libraries produced by a package, and make them visible to other packages.
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Currently SDWebImage org provide 3 kinds of SVG Coder Plugin support, here is co
| Plugin Name| Vector Image | Bitmap Image | Platform | Compatibility | Dependency |
|---|---|---|---|---|---|
| [SVGNativeCoder](https://github.com/SDWebImage/SDWebImageSVGNativeCoder) | NO | YES | iOS 9+ | Best and W3C standard | adobe/svg-native-viewer |
| [SVGCoder](https://github.com/SDWebImage/SDWebImageSVGCoder) | YES | YES | iOS 13+ | OK but buggy on some SVG | Apple CoreSVG(Private) |
| [SVGCoder](https://github.com/SDWebImage/SDWebImageSVGCoder) | YES | YES | iOS 15+ | OK but buggy on some SVG | Apple CoreSVG(Private) |
| [SVGKitPlugin](https://github.com/SDWebImage/SDWebImageSVGKitPlugin) | YES | NO | iOS 9+ | Worst, no longer maintain | SVGKit/SVGKit

## What's for
Expand Down Expand Up @@ -52,7 +52,7 @@ You can modify the code or use some other SVG files to check the compatibility.

## Requirements

+ iOS 13+
+ iOS 15+
+ tvOS 13+
+ macOS 10.15+
+ watchOS 6+
Expand Down Expand Up @@ -220,13 +220,13 @@ This framework supports backward deployment on iOS 12-/macOS 10.14-. And you can
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
platform :ios, '15.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, *)) {
if (@available(iOS 15, *)) {
[SDImageCodersManager.sharedCoder addCoder:SDImageSVGCoder.sharedCoder];
} else {
[SDImageCodersManager.sharedCoder addCoder:SDImageSVGKCoder.sharedCoder];
Expand Down
2 changes: 1 addition & 1 deletion SDWebImageSVGCoder.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ TODO: Add long description of the pod here.
s.author = { 'lizhuoli1126@126.com' => 'lizhuoli1126@126.com' }
s.source = { :git => 'https://github.com/SDWebImage/SDWebImageSVGCoder.git', :tag => s.version.to_s }

s.ios.deployment_target = '13.0'
s.ios.deployment_target = '15.0'
Comment thread
coderabbitai[bot] marked this conversation as resolved.
s.tvos.deployment_target = '13.0'
s.osx.deployment_target = '10.15'
s.watchos.deployment_target = '6.0'
Expand Down