Skip to content

Commit 90fb58e

Browse files
authored
Merge pull request #17 from SDWebImage/project_available_mark
Add the available annoatation to support backward deployment
2 parents dd4e6f4 + 1676bfb commit 90fb58e

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

SDWebImageSVGCoder.xcodeproj/project.pbxproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,7 @@
498498
isa = XCBuildConfiguration;
499499
buildSettings = {
500500
ALWAYS_SEARCH_USER_PATHS = NO;
501+
APPLICATION_EXTENSION_API_ONLY = YES;
501502
CLANG_ANALYZER_NONNULL = YES;
502503
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
503504
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
@@ -560,6 +561,7 @@
560561
isa = XCBuildConfiguration;
561562
buildSettings = {
562563
ALWAYS_SEARCH_USER_PATHS = NO;
564+
APPLICATION_EXTENSION_API_ONLY = YES;
563565
CLANG_ANALYZER_NONNULL = YES;
564566
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
565567
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";

SDWebImageSVGCoder/Classes/SDImageSVGCoder.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ NS_ASSUME_NONNULL_BEGIN
1515

1616
static const SDImageFormat SDImageFormatSVG = 12;
1717

18+
API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0), tvos(13.0))
1819
@interface SDImageSVGCoder : NSObject <SDImageCoder>
1920

2021
@property (nonatomic, class, readonly) SDImageSVGCoder *sharedCoder;

SDWebImageSVGCoder/Classes/SDWebImageSVGCoderDefine.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@
1515
A BOOL value which specify whether we prefer the actual bitmap representation instead of vector representation for SVG image. This is because the UIImage on iOS 13+ (NSImage on macOS 10.15+) can use the vector image format, which support dynamic scale without losing any detail. However, for some image processing logic, user may need the actual bitmap representation to manage pixels. (NSNumber)
1616
If you don't provide this value, use NO for default value and prefer the vector format when possible.
1717
*/
18-
FOUNDATION_EXPORT SDWebImageContextOption _Nonnull const SDWebImageContextSVGPrefersBitmap;
18+
FOUNDATION_EXPORT SDWebImageContextOption _Nonnull const SDWebImageContextSVGPrefersBitmap API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0), tvos(13.0));
1919

2020
/**
2121
A CGSize raw value which specify the desired SVG image size during image loading. Because vector image like SVG format, may not contains a fixed size, or you want to get a larger size bitmap representation UIImage. (NSValue)
2222
If you don't provide this value, use viewBox size of SVG for default value;
2323
*/
24-
FOUNDATION_EXPORT SDWebImageContextOption _Nonnull const SDWebImageContextSVGImageSize;
24+
FOUNDATION_EXPORT SDWebImageContextOption _Nonnull const SDWebImageContextSVGImageSize API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0), tvos(13.0));
2525

2626
/**
2727
A BOOL value which specify the whether SVG image should keep aspect ratio during image loading. Because when you specify image size via `SDWebImageContextSVGImageSize`, we need to know whether to keep aspect ratio or not when image size aspect ratio is not equal to SVG viewBox size aspect ratio. (NSNumber)
2828
If you don't provide this value, use YES for default value.
2929
*/
30-
FOUNDATION_EXPORT SDWebImageContextOption _Nonnull const SDWebImageContextSVGImagePreserveAspectRatio;
30+
FOUNDATION_EXPORT SDWebImageContextOption _Nonnull const SDWebImageContextSVGImagePreserveAspectRatio API_AVAILABLE(macos(10.15), ios(13.0), watchos(6.0), tvos(13.0));

0 commit comments

Comments
 (0)