├── .gitignore ├── .travis.yml ├── Cartfile ├── Cartfile.resolved ├── Example ├── Podfile ├── SDWebImageSVGNativeCoder-Example-macOS-Info.plist ├── SDWebImageSVGNativeCoder.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── xcshareddata │ │ └── xcschemes │ │ ├── SDWebImageSVGNativeCoder-Example.xcscheme │ │ └── SDWebImageSVGNativeCoder_Example-macOS.xcscheme ├── SDWebImageSVGNativeCoder.xcworkspace │ └── contents.xcworkspacedata ├── SDWebImageSVGNativeCoder │ ├── Base.lproj │ │ ├── LaunchScreen.storyboard │ │ └── Main.storyboard │ ├── Images.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── SDAppDelegate.h │ ├── SDAppDelegate.m │ ├── SDViewController.h │ ├── SDViewController.m │ ├── SDWebImageSVGNativeCoder-Info.plist │ ├── SDWebImageSVGNativeCoder-Prefix.pch │ ├── en.lproj │ │ └── InfoPlist.strings │ └── main.m ├── SDWebImageSVGNativeCoder_Example-macOS │ ├── AppDelegate.h │ ├── AppDelegate.m │ ├── Assets.xcassets │ │ ├── AccentColor.colorset │ │ │ └── Contents.json │ │ ├── AppIcon.appiconset │ │ │ └── Contents.json │ │ └── Contents.json │ ├── Base.lproj │ │ └── Main.storyboard │ ├── SDWebImageSVGNativeCoder_Example_macOS.entitlements │ ├── ViewController.h │ ├── ViewController.m │ └── main.m ├── Screenshot │ ├── SVGDemo-macOS.png │ └── SVGDemo.png └── Tests │ ├── Tests-Info.plist │ ├── Tests-Prefix.pch │ ├── Tests.m │ └── en.lproj │ └── InfoPlist.strings ├── LICENSE ├── Package.resolved ├── Package.swift ├── README.md ├── SDWebImageSVGNativeCoder.podspec ├── SDWebImageSVGNativeCoder.xcodeproj ├── project.pbxproj └── project.xcworkspace │ └── contents.xcworkspacedata └── SDWebImageSVGNativeCoder └── Classes ├── .gitkeep ├── SDImageSVGNativeCoder.h ├── SDImageSVGNativeCoder.mm └── SDWebImageSVGNativeCoder.h /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 4 | 5 | ## Build generated 6 | build/ 7 | DerivedData/ 8 | 9 | ## Various settings 10 | *.pbxuser 11 | !default.pbxuser 12 | *.mode1v3 13 | !default.mode1v3 14 | *.mode2v3 15 | !default.mode2v3 16 | *.perspectivev3 17 | !default.perspectivev3 18 | xcuserdata/ 19 | 20 | ## Other 21 | *.moved-aside 22 | *.xccheckout 23 | *.xcscmblueprint 24 | 25 | ## Obj-C/Swift specific 26 | *.hmap 27 | *.ipa 28 | *.dSYM.zip 29 | *.dSYM 30 | 31 | # CocoaPods 32 | # 33 | # We recommend against adding the Pods directory to your .gitignore. However 34 | # you should judge for yourself, the pros and cons are mentioned at: 35 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 36 | # 37 | Pods/ 38 | Podfile.lock 39 | 40 | # 41 | # Add this line if you want to avoid checking in source code from the Xcode workspace 42 | # *.xcworkspace 43 | 44 | # Carthage 45 | # 46 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 47 | Carthage/Checkouts 48 | Carthage/Build 49 | 50 | # fastlane 51 | # 52 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 53 | # screenshots whenever they are needed. 54 | # For more information about the recommended setup visit: 55 | # https://docs.fastlane.tools/best-practices/source-control/#source-control 56 | 57 | fastlane/report.xml 58 | fastlane/Preview.html 59 | fastlane/screenshots/**/*.png 60 | fastlane/test_output 61 | 62 | # Code Injection 63 | # 64 | # After new code Injection tools there's a generated folder /iOSInjectionProject 65 | # https://github.com/johnno1962/injectionforxcode 66 | 67 | iOSInjectionProject/ 68 | 69 | # SwiftPM 70 | .swiftpm 71 | .build 72 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | # references: 2 | # * https://www.objc.io/issues/6-build-tools/travis-ci/ 3 | # * https://github.com/supermarin/xcpretty#usage 4 | 5 | osx_image: xcode7.3 6 | language: objective-c 7 | # cache: cocoapods 8 | # podfile: Example/Podfile 9 | # before_install: 10 | # - gem install cocoapods # Since Travis is not always on latest version 11 | # - pod install --project-directory=Example 12 | script: 13 | - set -o pipefail && xcodebuild test -enableCodeCoverage YES -workspace Example/SDWebImageSVGNativeCoder.xcworkspace -scheme SDWebImageSVGNativeCoder-Example -sdk iphonesimulator9.3 ONLY_ACTIVE_ARCH=NO | xcpretty 14 | - pod lib lint 15 | -------------------------------------------------------------------------------- /Cartfile: -------------------------------------------------------------------------------- 1 | github "SDWebImage/SDWebImage" ~> 5.10 2 | github "SDWebImage/svgnative-Xcode" >= 0.1.0-beta 3 | -------------------------------------------------------------------------------- /Cartfile.resolved: -------------------------------------------------------------------------------- 1 | github "SDWebImage/SDWebImage" "5.13.2" 2 | github "SDWebImage/svgnative-Xcode" "0.1.0-beta" 3 | -------------------------------------------------------------------------------- /Example/Podfile: -------------------------------------------------------------------------------- 1 | # use_frameworks! 2 | use_modular_headers! 3 | 4 | target 'SDWebImageSVGNativeCoder_Example' do 5 | platform :ios, '9.0' 6 | pod 'SDWebImageSVGNativeCoder', :path => '../' 7 | pod 'svgnative' 8 | 9 | target 'SDWebImageSVGNativeCoder_Tests' do 10 | inherit! :search_paths 11 | end 12 | end 13 | 14 | target 'SDWebImageSVGNativeCoder_Example-macOS' do 15 | platform :osx, '10.15' 16 | pod 'SDWebImageSVGNativeCoder', :path => '../' 17 | pod 'svgnative' 18 | end 19 | -------------------------------------------------------------------------------- /Example/SDWebImageSVGNativeCoder-Example-macOS-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | NSAppTransportSecurity 6 | 7 | NSAllowsArbitraryLoads 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Example/SDWebImageSVGNativeCoder.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 321D14F22B4FE50C008F7FAA /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 321D14F12B4FE50C008F7FAA /* AppDelegate.m */; }; 11 | 321D14F52B4FE50C008F7FAA /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 321D14F42B4FE50C008F7FAA /* ViewController.m */; }; 12 | 321D14F72B4FE50D008F7FAA /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 321D14F62B4FE50D008F7FAA /* Assets.xcassets */; }; 13 | 321D14FA2B4FE50D008F7FAA /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 321D14F82B4FE50D008F7FAA /* Main.storyboard */; }; 14 | 321D14FC2B4FE50D008F7FAA /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 321D14FB2B4FE50D008F7FAA /* main.m */; }; 15 | 6003F58E195388D20070C39A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58D195388D20070C39A /* Foundation.framework */; }; 16 | 6003F590195388D20070C39A /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58F195388D20070C39A /* CoreGraphics.framework */; }; 17 | 6003F592195388D20070C39A /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F591195388D20070C39A /* UIKit.framework */; }; 18 | 6003F598195388D20070C39A /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 6003F596195388D20070C39A /* InfoPlist.strings */; }; 19 | 6003F59A195388D20070C39A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F599195388D20070C39A /* main.m */; }; 20 | 6003F59E195388D20070C39A /* SDAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F59D195388D20070C39A /* SDAppDelegate.m */; }; 21 | 6003F5A7195388D20070C39A /* SDViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F5A6195388D20070C39A /* SDViewController.m */; }; 22 | 6003F5A9195388D20070C39A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 6003F5A8195388D20070C39A /* Images.xcassets */; }; 23 | 6003F5B0195388D20070C39A /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F5AF195388D20070C39A /* XCTest.framework */; }; 24 | 6003F5B1195388D20070C39A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58D195388D20070C39A /* Foundation.framework */; }; 25 | 6003F5B2195388D20070C39A /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F591195388D20070C39A /* UIKit.framework */; }; 26 | 6003F5BA195388D20070C39A /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 6003F5B8195388D20070C39A /* InfoPlist.strings */; }; 27 | 6003F5BC195388D20070C39A /* Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F5BB195388D20070C39A /* Tests.m */; }; 28 | 71719F9F1E33DC2100824A3D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 71719F9D1E33DC2100824A3D /* LaunchScreen.storyboard */; }; 29 | 873B8AEB1B1F5CCA007FD442 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 873B8AEA1B1F5CCA007FD442 /* Main.storyboard */; }; 30 | 9EAB53ED563670F19A69BF2A /* libPods-SDWebImageSVGNativeCoder_Example-macOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 9DD915547146669BCDF3D209 /* libPods-SDWebImageSVGNativeCoder_Example-macOS.a */; }; 31 | A882D6E38F8117CEF475A9EC /* libPods-SDWebImageSVGNativeCoder_Tests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = F2CF7DEC799E3770E7FC5566 /* libPods-SDWebImageSVGNativeCoder_Tests.a */; }; 32 | C50B2203FB4A425F7A1B3744 /* libPods-SDWebImageSVGNativeCoder_Example.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 9BD4214E54E3D1222EA20A8A /* libPods-SDWebImageSVGNativeCoder_Example.a */; }; 33 | /* End PBXBuildFile section */ 34 | 35 | /* Begin PBXContainerItemProxy section */ 36 | 6003F5B3195388D20070C39A /* PBXContainerItemProxy */ = { 37 | isa = PBXContainerItemProxy; 38 | containerPortal = 6003F582195388D10070C39A /* Project object */; 39 | proxyType = 1; 40 | remoteGlobalIDString = 6003F589195388D20070C39A; 41 | remoteInfo = SDWebImageSVGNativeCoder; 42 | }; 43 | /* End PBXContainerItemProxy section */ 44 | 45 | /* Begin PBXFileReference section */ 46 | 10574A43633DC0A45EFA5EE6 /* Pods-SDWebImageSVGNativeCoder_Example-macOS.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SDWebImageSVGNativeCoder_Example-macOS.release.xcconfig"; path = "Target Support Files/Pods-SDWebImageSVGNativeCoder_Example-macOS/Pods-SDWebImageSVGNativeCoder_Example-macOS.release.xcconfig"; sourceTree = ""; }; 47 | 321D14EE2B4FE50C008F7FAA /* SDWebImageSVGNativeCoder_Example-macOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "SDWebImageSVGNativeCoder_Example-macOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 48 | 321D14F02B4FE50C008F7FAA /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 49 | 321D14F12B4FE50C008F7FAA /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 50 | 321D14F32B4FE50C008F7FAA /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; 51 | 321D14F42B4FE50C008F7FAA /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 52 | 321D14F62B4FE50D008F7FAA /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 53 | 321D14F92B4FE50D008F7FAA /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 54 | 321D14FB2B4FE50D008F7FAA /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 55 | 321D14FD2B4FE50D008F7FAA /* SDWebImageSVGNativeCoder_Example_macOS.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = SDWebImageSVGNativeCoder_Example_macOS.entitlements; sourceTree = ""; }; 56 | 321D15012B4FE6B9008F7FAA /* SDWebImageSVGNativeCoder-Example-macOS-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist; path = "SDWebImageSVGNativeCoder-Example-macOS-Info.plist"; sourceTree = SOURCE_ROOT; }; 57 | 38B849457147DBB1B7EAAC72 /* Pods-SDWebImageSVGNativeCoder_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SDWebImageSVGNativeCoder_Example.release.xcconfig"; path = "Target Support Files/Pods-SDWebImageSVGNativeCoder_Example/Pods-SDWebImageSVGNativeCoder_Example.release.xcconfig"; sourceTree = ""; }; 58 | 3BDB93D2EA345E9B655AB9F8 /* Pods-SDWebImageSVGNativeCoder_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SDWebImageSVGNativeCoder_Tests.debug.xcconfig"; path = "Target Support Files/Pods-SDWebImageSVGNativeCoder_Tests/Pods-SDWebImageSVGNativeCoder_Tests.debug.xcconfig"; sourceTree = ""; }; 59 | 6003F58A195388D20070C39A /* SDWebImageSVGNativeCoder_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SDWebImageSVGNativeCoder_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 60 | 6003F58D195388D20070C39A /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; 61 | 6003F58F195388D20070C39A /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; 62 | 6003F591195388D20070C39A /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; 63 | 6003F595195388D20070C39A /* SDWebImageSVGNativeCoder-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "SDWebImageSVGNativeCoder-Info.plist"; sourceTree = ""; }; 64 | 6003F597195388D20070C39A /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 65 | 6003F599195388D20070C39A /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 66 | 6003F59B195388D20070C39A /* SDWebImageSVGNativeCoder-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "SDWebImageSVGNativeCoder-Prefix.pch"; sourceTree = ""; }; 67 | 6003F59C195388D20070C39A /* SDAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SDAppDelegate.h; sourceTree = ""; }; 68 | 6003F59D195388D20070C39A /* SDAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SDAppDelegate.m; sourceTree = ""; }; 69 | 6003F5A5195388D20070C39A /* SDViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SDViewController.h; sourceTree = ""; }; 70 | 6003F5A6195388D20070C39A /* SDViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SDViewController.m; sourceTree = ""; }; 71 | 6003F5A8195388D20070C39A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 72 | 6003F5AE195388D20070C39A /* SDWebImageSVGNativeCoder_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SDWebImageSVGNativeCoder_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 73 | 6003F5AF195388D20070C39A /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; }; 74 | 6003F5B7195388D20070C39A /* Tests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Tests-Info.plist"; sourceTree = ""; }; 75 | 6003F5B9195388D20070C39A /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 76 | 6003F5BB195388D20070C39A /* Tests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = Tests.m; sourceTree = ""; }; 77 | 606FC2411953D9B200FFA9A0 /* Tests-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Tests-Prefix.pch"; sourceTree = ""; }; 78 | 71719F9E1E33DC2100824A3D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 79 | 7AE974B3D45205AAB2365343 /* Pods-SDWebImageSVGNativeCoder_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SDWebImageSVGNativeCoder_Example.debug.xcconfig"; path = "Target Support Files/Pods-SDWebImageSVGNativeCoder_Example/Pods-SDWebImageSVGNativeCoder_Example.debug.xcconfig"; sourceTree = ""; }; 80 | 873B8AEA1B1F5CCA007FD442 /* Main.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = Main.storyboard; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 81 | 981AA62F0DB195F9B93345C1 /* Pods-SDWebImageSVGNativeCoder_Example-macOS.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SDWebImageSVGNativeCoder_Example-macOS.debug.xcconfig"; path = "Target Support Files/Pods-SDWebImageSVGNativeCoder_Example-macOS/Pods-SDWebImageSVGNativeCoder_Example-macOS.debug.xcconfig"; sourceTree = ""; }; 82 | 9BD4214E54E3D1222EA20A8A /* libPods-SDWebImageSVGNativeCoder_Example.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-SDWebImageSVGNativeCoder_Example.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 83 | 9DD915547146669BCDF3D209 /* libPods-SDWebImageSVGNativeCoder_Example-macOS.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-SDWebImageSVGNativeCoder_Example-macOS.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 84 | A583FAADD3AB384C11D2E1CC /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; 85 | AD26FD058960611EDB14AEFA /* SDWebImageSVGNativeCoder.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = SDWebImageSVGNativeCoder.podspec; path = ../SDWebImageSVGNativeCoder.podspec; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 86 | DFEC7AB2B4F3B38EA158761D /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; 87 | F2CF7DEC799E3770E7FC5566 /* libPods-SDWebImageSVGNativeCoder_Tests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-SDWebImageSVGNativeCoder_Tests.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 88 | FA1C2839C5EDC47CCD24FDF0 /* Pods-SDWebImageSVGNativeCoder_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SDWebImageSVGNativeCoder_Tests.release.xcconfig"; path = "Target Support Files/Pods-SDWebImageSVGNativeCoder_Tests/Pods-SDWebImageSVGNativeCoder_Tests.release.xcconfig"; sourceTree = ""; }; 89 | /* End PBXFileReference section */ 90 | 91 | /* Begin PBXFrameworksBuildPhase section */ 92 | 321D14EB2B4FE50C008F7FAA /* Frameworks */ = { 93 | isa = PBXFrameworksBuildPhase; 94 | buildActionMask = 2147483647; 95 | files = ( 96 | 9EAB53ED563670F19A69BF2A /* libPods-SDWebImageSVGNativeCoder_Example-macOS.a in Frameworks */, 97 | ); 98 | runOnlyForDeploymentPostprocessing = 0; 99 | }; 100 | 6003F587195388D20070C39A /* Frameworks */ = { 101 | isa = PBXFrameworksBuildPhase; 102 | buildActionMask = 2147483647; 103 | files = ( 104 | 6003F590195388D20070C39A /* CoreGraphics.framework in Frameworks */, 105 | 6003F592195388D20070C39A /* UIKit.framework in Frameworks */, 106 | 6003F58E195388D20070C39A /* Foundation.framework in Frameworks */, 107 | C50B2203FB4A425F7A1B3744 /* libPods-SDWebImageSVGNativeCoder_Example.a in Frameworks */, 108 | ); 109 | runOnlyForDeploymentPostprocessing = 0; 110 | }; 111 | 6003F5AB195388D20070C39A /* Frameworks */ = { 112 | isa = PBXFrameworksBuildPhase; 113 | buildActionMask = 2147483647; 114 | files = ( 115 | 6003F5B0195388D20070C39A /* XCTest.framework in Frameworks */, 116 | 6003F5B2195388D20070C39A /* UIKit.framework in Frameworks */, 117 | 6003F5B1195388D20070C39A /* Foundation.framework in Frameworks */, 118 | A882D6E38F8117CEF475A9EC /* libPods-SDWebImageSVGNativeCoder_Tests.a in Frameworks */, 119 | ); 120 | runOnlyForDeploymentPostprocessing = 0; 121 | }; 122 | /* End PBXFrameworksBuildPhase section */ 123 | 124 | /* Begin PBXGroup section */ 125 | 18817D18F20873C780B730A8 /* Pods */ = { 126 | isa = PBXGroup; 127 | children = ( 128 | 7AE974B3D45205AAB2365343 /* Pods-SDWebImageSVGNativeCoder_Example.debug.xcconfig */, 129 | 38B849457147DBB1B7EAAC72 /* Pods-SDWebImageSVGNativeCoder_Example.release.xcconfig */, 130 | 3BDB93D2EA345E9B655AB9F8 /* Pods-SDWebImageSVGNativeCoder_Tests.debug.xcconfig */, 131 | FA1C2839C5EDC47CCD24FDF0 /* Pods-SDWebImageSVGNativeCoder_Tests.release.xcconfig */, 132 | 981AA62F0DB195F9B93345C1 /* Pods-SDWebImageSVGNativeCoder_Example-macOS.debug.xcconfig */, 133 | 10574A43633DC0A45EFA5EE6 /* Pods-SDWebImageSVGNativeCoder_Example-macOS.release.xcconfig */, 134 | ); 135 | path = Pods; 136 | sourceTree = ""; 137 | }; 138 | 321D14EF2B4FE50C008F7FAA /* SDWebImageSVGNativeCoder_Example-macOS */ = { 139 | isa = PBXGroup; 140 | children = ( 141 | 321D15012B4FE6B9008F7FAA /* SDWebImageSVGNativeCoder-Example-macOS-Info.plist */, 142 | 321D14F02B4FE50C008F7FAA /* AppDelegate.h */, 143 | 321D14F12B4FE50C008F7FAA /* AppDelegate.m */, 144 | 321D14F32B4FE50C008F7FAA /* ViewController.h */, 145 | 321D14F42B4FE50C008F7FAA /* ViewController.m */, 146 | 321D14F62B4FE50D008F7FAA /* Assets.xcassets */, 147 | 321D14F82B4FE50D008F7FAA /* Main.storyboard */, 148 | 321D14FB2B4FE50D008F7FAA /* main.m */, 149 | 321D14FD2B4FE50D008F7FAA /* SDWebImageSVGNativeCoder_Example_macOS.entitlements */, 150 | ); 151 | path = "SDWebImageSVGNativeCoder_Example-macOS"; 152 | sourceTree = ""; 153 | }; 154 | 6003F581195388D10070C39A = { 155 | isa = PBXGroup; 156 | children = ( 157 | 60FF7A9C1954A5C5007DD14C /* Podspec Metadata */, 158 | 6003F593195388D20070C39A /* Example for SDWebImageSVGNativeCoder */, 159 | 6003F5B5195388D20070C39A /* Tests */, 160 | 321D14EF2B4FE50C008F7FAA /* SDWebImageSVGNativeCoder_Example-macOS */, 161 | 6003F58C195388D20070C39A /* Frameworks */, 162 | 6003F58B195388D20070C39A /* Products */, 163 | 18817D18F20873C780B730A8 /* Pods */, 164 | ); 165 | sourceTree = ""; 166 | }; 167 | 6003F58B195388D20070C39A /* Products */ = { 168 | isa = PBXGroup; 169 | children = ( 170 | 6003F58A195388D20070C39A /* SDWebImageSVGNativeCoder_Example.app */, 171 | 6003F5AE195388D20070C39A /* SDWebImageSVGNativeCoder_Tests.xctest */, 172 | 321D14EE2B4FE50C008F7FAA /* SDWebImageSVGNativeCoder_Example-macOS.app */, 173 | ); 174 | name = Products; 175 | sourceTree = ""; 176 | }; 177 | 6003F58C195388D20070C39A /* Frameworks */ = { 178 | isa = PBXGroup; 179 | children = ( 180 | 6003F58D195388D20070C39A /* Foundation.framework */, 181 | 6003F58F195388D20070C39A /* CoreGraphics.framework */, 182 | 6003F591195388D20070C39A /* UIKit.framework */, 183 | 6003F5AF195388D20070C39A /* XCTest.framework */, 184 | 9BD4214E54E3D1222EA20A8A /* libPods-SDWebImageSVGNativeCoder_Example.a */, 185 | F2CF7DEC799E3770E7FC5566 /* libPods-SDWebImageSVGNativeCoder_Tests.a */, 186 | 9DD915547146669BCDF3D209 /* libPods-SDWebImageSVGNativeCoder_Example-macOS.a */, 187 | ); 188 | name = Frameworks; 189 | sourceTree = ""; 190 | }; 191 | 6003F593195388D20070C39A /* Example for SDWebImageSVGNativeCoder */ = { 192 | isa = PBXGroup; 193 | children = ( 194 | 6003F59C195388D20070C39A /* SDAppDelegate.h */, 195 | 6003F59D195388D20070C39A /* SDAppDelegate.m */, 196 | 873B8AEA1B1F5CCA007FD442 /* Main.storyboard */, 197 | 6003F5A5195388D20070C39A /* SDViewController.h */, 198 | 6003F5A6195388D20070C39A /* SDViewController.m */, 199 | 71719F9D1E33DC2100824A3D /* LaunchScreen.storyboard */, 200 | 6003F5A8195388D20070C39A /* Images.xcassets */, 201 | 6003F594195388D20070C39A /* Supporting Files */, 202 | ); 203 | name = "Example for SDWebImageSVGNativeCoder"; 204 | path = SDWebImageSVGNativeCoder; 205 | sourceTree = ""; 206 | }; 207 | 6003F594195388D20070C39A /* Supporting Files */ = { 208 | isa = PBXGroup; 209 | children = ( 210 | 6003F595195388D20070C39A /* SDWebImageSVGNativeCoder-Info.plist */, 211 | 6003F596195388D20070C39A /* InfoPlist.strings */, 212 | 6003F599195388D20070C39A /* main.m */, 213 | 6003F59B195388D20070C39A /* SDWebImageSVGNativeCoder-Prefix.pch */, 214 | ); 215 | name = "Supporting Files"; 216 | sourceTree = ""; 217 | }; 218 | 6003F5B5195388D20070C39A /* Tests */ = { 219 | isa = PBXGroup; 220 | children = ( 221 | 6003F5BB195388D20070C39A /* Tests.m */, 222 | 6003F5B6195388D20070C39A /* Supporting Files */, 223 | ); 224 | path = Tests; 225 | sourceTree = ""; 226 | }; 227 | 6003F5B6195388D20070C39A /* Supporting Files */ = { 228 | isa = PBXGroup; 229 | children = ( 230 | 6003F5B7195388D20070C39A /* Tests-Info.plist */, 231 | 6003F5B8195388D20070C39A /* InfoPlist.strings */, 232 | 606FC2411953D9B200FFA9A0 /* Tests-Prefix.pch */, 233 | ); 234 | name = "Supporting Files"; 235 | sourceTree = ""; 236 | }; 237 | 60FF7A9C1954A5C5007DD14C /* Podspec Metadata */ = { 238 | isa = PBXGroup; 239 | children = ( 240 | AD26FD058960611EDB14AEFA /* SDWebImageSVGNativeCoder.podspec */, 241 | A583FAADD3AB384C11D2E1CC /* README.md */, 242 | DFEC7AB2B4F3B38EA158761D /* LICENSE */, 243 | ); 244 | name = "Podspec Metadata"; 245 | sourceTree = ""; 246 | }; 247 | /* End PBXGroup section */ 248 | 249 | /* Begin PBXNativeTarget section */ 250 | 321D14ED2B4FE50C008F7FAA /* SDWebImageSVGNativeCoder_Example-macOS */ = { 251 | isa = PBXNativeTarget; 252 | buildConfigurationList = 321D15002B4FE50D008F7FAA /* Build configuration list for PBXNativeTarget "SDWebImageSVGNativeCoder_Example-macOS" */; 253 | buildPhases = ( 254 | 26198DBA006C683FEA04F5CF /* [CP] Check Pods Manifest.lock */, 255 | 321D14EA2B4FE50C008F7FAA /* Sources */, 256 | 321D14EB2B4FE50C008F7FAA /* Frameworks */, 257 | 321D14EC2B4FE50C008F7FAA /* Resources */, 258 | FE22AE6B3AA9DDC8D96EED82 /* [CP] Copy Pods Resources */, 259 | ); 260 | buildRules = ( 261 | ); 262 | dependencies = ( 263 | ); 264 | name = "SDWebImageSVGNativeCoder_Example-macOS"; 265 | productName = "SDWebImageSVGNativeCoder_Example-macOS"; 266 | productReference = 321D14EE2B4FE50C008F7FAA /* SDWebImageSVGNativeCoder_Example-macOS.app */; 267 | productType = "com.apple.product-type.application"; 268 | }; 269 | 6003F589195388D20070C39A /* SDWebImageSVGNativeCoder_Example */ = { 270 | isa = PBXNativeTarget; 271 | buildConfigurationList = 6003F5BF195388D20070C39A /* Build configuration list for PBXNativeTarget "SDWebImageSVGNativeCoder_Example" */; 272 | buildPhases = ( 273 | D47B14D7666E1D96356FCF45 /* [CP] Check Pods Manifest.lock */, 274 | 6003F586195388D20070C39A /* Sources */, 275 | 6003F587195388D20070C39A /* Frameworks */, 276 | 6003F588195388D20070C39A /* Resources */, 277 | 1EF2BF6E32DB6C98004B8872 /* [CP] Copy Pods Resources */, 278 | ); 279 | buildRules = ( 280 | ); 281 | dependencies = ( 282 | ); 283 | name = SDWebImageSVGNativeCoder_Example; 284 | productName = SDWebImageSVGNativeCoder; 285 | productReference = 6003F58A195388D20070C39A /* SDWebImageSVGNativeCoder_Example.app */; 286 | productType = "com.apple.product-type.application"; 287 | }; 288 | 6003F5AD195388D20070C39A /* SDWebImageSVGNativeCoder_Tests */ = { 289 | isa = PBXNativeTarget; 290 | buildConfigurationList = 6003F5C2195388D20070C39A /* Build configuration list for PBXNativeTarget "SDWebImageSVGNativeCoder_Tests" */; 291 | buildPhases = ( 292 | 57D06AB13E32D9D91C460143 /* [CP] Check Pods Manifest.lock */, 293 | 6003F5AA195388D20070C39A /* Sources */, 294 | 6003F5AB195388D20070C39A /* Frameworks */, 295 | 6003F5AC195388D20070C39A /* Resources */, 296 | ); 297 | buildRules = ( 298 | ); 299 | dependencies = ( 300 | 6003F5B4195388D20070C39A /* PBXTargetDependency */, 301 | ); 302 | name = SDWebImageSVGNativeCoder_Tests; 303 | productName = SDWebImageSVGNativeCoderTests; 304 | productReference = 6003F5AE195388D20070C39A /* SDWebImageSVGNativeCoder_Tests.xctest */; 305 | productType = "com.apple.product-type.bundle.unit-test"; 306 | }; 307 | /* End PBXNativeTarget section */ 308 | 309 | /* Begin PBXProject section */ 310 | 6003F582195388D10070C39A /* Project object */ = { 311 | isa = PBXProject; 312 | attributes = { 313 | CLASSPREFIX = SD; 314 | LastUpgradeCheck = 0720; 315 | ORGANIZATIONNAME = dreampiggy; 316 | TargetAttributes = { 317 | 321D14ED2B4FE50C008F7FAA = { 318 | CreatedOnToolsVersion = 14.1; 319 | ProvisioningStyle = Automatic; 320 | }; 321 | 6003F5AD195388D20070C39A = { 322 | TestTargetID = 6003F589195388D20070C39A; 323 | }; 324 | }; 325 | }; 326 | buildConfigurationList = 6003F585195388D10070C39A /* Build configuration list for PBXProject "SDWebImageSVGNativeCoder" */; 327 | compatibilityVersion = "Xcode 3.2"; 328 | developmentRegion = English; 329 | hasScannedForEncodings = 0; 330 | knownRegions = ( 331 | English, 332 | en, 333 | Base, 334 | ); 335 | mainGroup = 6003F581195388D10070C39A; 336 | productRefGroup = 6003F58B195388D20070C39A /* Products */; 337 | projectDirPath = ""; 338 | projectRoot = ""; 339 | targets = ( 340 | 6003F589195388D20070C39A /* SDWebImageSVGNativeCoder_Example */, 341 | 6003F5AD195388D20070C39A /* SDWebImageSVGNativeCoder_Tests */, 342 | 321D14ED2B4FE50C008F7FAA /* SDWebImageSVGNativeCoder_Example-macOS */, 343 | ); 344 | }; 345 | /* End PBXProject section */ 346 | 347 | /* Begin PBXResourcesBuildPhase section */ 348 | 321D14EC2B4FE50C008F7FAA /* Resources */ = { 349 | isa = PBXResourcesBuildPhase; 350 | buildActionMask = 2147483647; 351 | files = ( 352 | 321D14F72B4FE50D008F7FAA /* Assets.xcassets in Resources */, 353 | 321D14FA2B4FE50D008F7FAA /* Main.storyboard in Resources */, 354 | ); 355 | runOnlyForDeploymentPostprocessing = 0; 356 | }; 357 | 6003F588195388D20070C39A /* Resources */ = { 358 | isa = PBXResourcesBuildPhase; 359 | buildActionMask = 2147483647; 360 | files = ( 361 | 873B8AEB1B1F5CCA007FD442 /* Main.storyboard in Resources */, 362 | 71719F9F1E33DC2100824A3D /* LaunchScreen.storyboard in Resources */, 363 | 6003F5A9195388D20070C39A /* Images.xcassets in Resources */, 364 | 6003F598195388D20070C39A /* InfoPlist.strings in Resources */, 365 | ); 366 | runOnlyForDeploymentPostprocessing = 0; 367 | }; 368 | 6003F5AC195388D20070C39A /* Resources */ = { 369 | isa = PBXResourcesBuildPhase; 370 | buildActionMask = 2147483647; 371 | files = ( 372 | 6003F5BA195388D20070C39A /* InfoPlist.strings in Resources */, 373 | ); 374 | runOnlyForDeploymentPostprocessing = 0; 375 | }; 376 | /* End PBXResourcesBuildPhase section */ 377 | 378 | /* Begin PBXShellScriptBuildPhase section */ 379 | 1EF2BF6E32DB6C98004B8872 /* [CP] Copy Pods Resources */ = { 380 | isa = PBXShellScriptBuildPhase; 381 | buildActionMask = 2147483647; 382 | files = ( 383 | ); 384 | inputPaths = ( 385 | "${PODS_ROOT}/Target Support Files/Pods-SDWebImageSVGNativeCoder_Example/Pods-SDWebImageSVGNativeCoder_Example-resources.sh", 386 | "${PODS_CONFIGURATION_BUILD_DIR}/SDWebImage-iOS/SDWebImage.bundle", 387 | ); 388 | name = "[CP] Copy Pods Resources"; 389 | outputPaths = ( 390 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/SDWebImage.bundle", 391 | ); 392 | runOnlyForDeploymentPostprocessing = 0; 393 | shellPath = /bin/sh; 394 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-SDWebImageSVGNativeCoder_Example/Pods-SDWebImageSVGNativeCoder_Example-resources.sh\"\n"; 395 | showEnvVarsInLog = 0; 396 | }; 397 | 26198DBA006C683FEA04F5CF /* [CP] Check Pods Manifest.lock */ = { 398 | isa = PBXShellScriptBuildPhase; 399 | buildActionMask = 2147483647; 400 | files = ( 401 | ); 402 | inputFileListPaths = ( 403 | ); 404 | inputPaths = ( 405 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 406 | "${PODS_ROOT}/Manifest.lock", 407 | ); 408 | name = "[CP] Check Pods Manifest.lock"; 409 | outputFileListPaths = ( 410 | ); 411 | outputPaths = ( 412 | "$(DERIVED_FILE_DIR)/Pods-SDWebImageSVGNativeCoder_Example-macOS-checkManifestLockResult.txt", 413 | ); 414 | runOnlyForDeploymentPostprocessing = 0; 415 | shellPath = /bin/sh; 416 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 417 | showEnvVarsInLog = 0; 418 | }; 419 | 57D06AB13E32D9D91C460143 /* [CP] Check Pods Manifest.lock */ = { 420 | isa = PBXShellScriptBuildPhase; 421 | buildActionMask = 2147483647; 422 | files = ( 423 | ); 424 | inputFileListPaths = ( 425 | ); 426 | inputPaths = ( 427 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 428 | "${PODS_ROOT}/Manifest.lock", 429 | ); 430 | name = "[CP] Check Pods Manifest.lock"; 431 | outputFileListPaths = ( 432 | ); 433 | outputPaths = ( 434 | "$(DERIVED_FILE_DIR)/Pods-SDWebImageSVGNativeCoder_Tests-checkManifestLockResult.txt", 435 | ); 436 | runOnlyForDeploymentPostprocessing = 0; 437 | shellPath = /bin/sh; 438 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 439 | showEnvVarsInLog = 0; 440 | }; 441 | D47B14D7666E1D96356FCF45 /* [CP] Check Pods Manifest.lock */ = { 442 | isa = PBXShellScriptBuildPhase; 443 | buildActionMask = 2147483647; 444 | files = ( 445 | ); 446 | inputFileListPaths = ( 447 | ); 448 | inputPaths = ( 449 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 450 | "${PODS_ROOT}/Manifest.lock", 451 | ); 452 | name = "[CP] Check Pods Manifest.lock"; 453 | outputFileListPaths = ( 454 | ); 455 | outputPaths = ( 456 | "$(DERIVED_FILE_DIR)/Pods-SDWebImageSVGNativeCoder_Example-checkManifestLockResult.txt", 457 | ); 458 | runOnlyForDeploymentPostprocessing = 0; 459 | shellPath = /bin/sh; 460 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 461 | showEnvVarsInLog = 0; 462 | }; 463 | FE22AE6B3AA9DDC8D96EED82 /* [CP] Copy Pods Resources */ = { 464 | isa = PBXShellScriptBuildPhase; 465 | buildActionMask = 2147483647; 466 | files = ( 467 | ); 468 | inputPaths = ( 469 | "${PODS_ROOT}/Target Support Files/Pods-SDWebImageSVGNativeCoder_Example-macOS/Pods-SDWebImageSVGNativeCoder_Example-macOS-resources.sh", 470 | "${PODS_CONFIGURATION_BUILD_DIR}/SDWebImage-macOS/SDWebImage.bundle", 471 | ); 472 | name = "[CP] Copy Pods Resources"; 473 | outputPaths = ( 474 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/SDWebImage.bundle", 475 | ); 476 | runOnlyForDeploymentPostprocessing = 0; 477 | shellPath = /bin/sh; 478 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-SDWebImageSVGNativeCoder_Example-macOS/Pods-SDWebImageSVGNativeCoder_Example-macOS-resources.sh\"\n"; 479 | showEnvVarsInLog = 0; 480 | }; 481 | /* End PBXShellScriptBuildPhase section */ 482 | 483 | /* Begin PBXSourcesBuildPhase section */ 484 | 321D14EA2B4FE50C008F7FAA /* Sources */ = { 485 | isa = PBXSourcesBuildPhase; 486 | buildActionMask = 2147483647; 487 | files = ( 488 | 321D14F52B4FE50C008F7FAA /* ViewController.m in Sources */, 489 | 321D14FC2B4FE50D008F7FAA /* main.m in Sources */, 490 | 321D14F22B4FE50C008F7FAA /* AppDelegate.m in Sources */, 491 | ); 492 | runOnlyForDeploymentPostprocessing = 0; 493 | }; 494 | 6003F586195388D20070C39A /* Sources */ = { 495 | isa = PBXSourcesBuildPhase; 496 | buildActionMask = 2147483647; 497 | files = ( 498 | 6003F59E195388D20070C39A /* SDAppDelegate.m in Sources */, 499 | 6003F5A7195388D20070C39A /* SDViewController.m in Sources */, 500 | 6003F59A195388D20070C39A /* main.m in Sources */, 501 | ); 502 | runOnlyForDeploymentPostprocessing = 0; 503 | }; 504 | 6003F5AA195388D20070C39A /* Sources */ = { 505 | isa = PBXSourcesBuildPhase; 506 | buildActionMask = 2147483647; 507 | files = ( 508 | 6003F5BC195388D20070C39A /* Tests.m in Sources */, 509 | ); 510 | runOnlyForDeploymentPostprocessing = 0; 511 | }; 512 | /* End PBXSourcesBuildPhase section */ 513 | 514 | /* Begin PBXTargetDependency section */ 515 | 6003F5B4195388D20070C39A /* PBXTargetDependency */ = { 516 | isa = PBXTargetDependency; 517 | target = 6003F589195388D20070C39A /* SDWebImageSVGNativeCoder_Example */; 518 | targetProxy = 6003F5B3195388D20070C39A /* PBXContainerItemProxy */; 519 | }; 520 | /* End PBXTargetDependency section */ 521 | 522 | /* Begin PBXVariantGroup section */ 523 | 321D14F82B4FE50D008F7FAA /* Main.storyboard */ = { 524 | isa = PBXVariantGroup; 525 | children = ( 526 | 321D14F92B4FE50D008F7FAA /* Base */, 527 | ); 528 | name = Main.storyboard; 529 | sourceTree = ""; 530 | }; 531 | 6003F596195388D20070C39A /* InfoPlist.strings */ = { 532 | isa = PBXVariantGroup; 533 | children = ( 534 | 6003F597195388D20070C39A /* en */, 535 | ); 536 | name = InfoPlist.strings; 537 | sourceTree = ""; 538 | }; 539 | 6003F5B8195388D20070C39A /* InfoPlist.strings */ = { 540 | isa = PBXVariantGroup; 541 | children = ( 542 | 6003F5B9195388D20070C39A /* en */, 543 | ); 544 | name = InfoPlist.strings; 545 | sourceTree = ""; 546 | }; 547 | 71719F9D1E33DC2100824A3D /* LaunchScreen.storyboard */ = { 548 | isa = PBXVariantGroup; 549 | children = ( 550 | 71719F9E1E33DC2100824A3D /* Base */, 551 | ); 552 | name = LaunchScreen.storyboard; 553 | sourceTree = ""; 554 | }; 555 | /* End PBXVariantGroup section */ 556 | 557 | /* Begin XCBuildConfiguration section */ 558 | 321D14FE2B4FE50D008F7FAA /* Debug */ = { 559 | isa = XCBuildConfiguration; 560 | baseConfigurationReference = 981AA62F0DB195F9B93345C1 /* Pods-SDWebImageSVGNativeCoder_Example-macOS.debug.xcconfig */; 561 | buildSettings = { 562 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 563 | ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; 564 | CLANG_ANALYZER_NONNULL = YES; 565 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 566 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; 567 | CLANG_ENABLE_OBJC_WEAK = YES; 568 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 569 | CLANG_WARN_COMMA = YES; 570 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 571 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 572 | CLANG_WARN_INFINITE_RECURSION = YES; 573 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 574 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 575 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 576 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 577 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 578 | CLANG_WARN_STRICT_PROTOTYPES = YES; 579 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 580 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 581 | CLANG_WARN_UNREACHABLE_CODE = YES; 582 | CODE_SIGN_ENTITLEMENTS = "SDWebImageSVGNativeCoder_Example-macOS/SDWebImageSVGNativeCoder_Example_macOS.entitlements"; 583 | CODE_SIGN_STYLE = Automatic; 584 | COMBINE_HIDPI_IMAGES = YES; 585 | CURRENT_PROJECT_VERSION = 1; 586 | DEBUG_INFORMATION_FORMAT = dwarf; 587 | ENABLE_STRICT_OBJC_MSGSEND = YES; 588 | GCC_C_LANGUAGE_STANDARD = gnu11; 589 | GCC_NO_COMMON_BLOCKS = YES; 590 | GENERATE_INFOPLIST_FILE = YES; 591 | INFOPLIST_FILE = "SDWebImageSVGNativeCoder-Example-macOS-Info.plist"; 592 | INFOPLIST_KEY_NSHumanReadableCopyright = "Copyright © 2024 dreampiggy. All rights reserved."; 593 | INFOPLIST_KEY_NSMainStoryboardFile = Main; 594 | INFOPLIST_KEY_NSPrincipalClass = NSApplication; 595 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks"; 596 | MACOSX_DEPLOYMENT_TARGET = 10.15; 597 | MARKETING_VERSION = 1.0; 598 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 599 | MTL_FAST_MATH = YES; 600 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.SDWebImageSVGNativeCoder-Example-macOS"; 601 | PRODUCT_NAME = "$(TARGET_NAME)"; 602 | SDKROOT = macosx; 603 | SWIFT_EMIT_LOC_STRINGS = YES; 604 | }; 605 | name = Debug; 606 | }; 607 | 321D14FF2B4FE50D008F7FAA /* Release */ = { 608 | isa = XCBuildConfiguration; 609 | baseConfigurationReference = 10574A43633DC0A45EFA5EE6 /* Pods-SDWebImageSVGNativeCoder_Example-macOS.release.xcconfig */; 610 | buildSettings = { 611 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 612 | ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; 613 | CLANG_ANALYZER_NONNULL = YES; 614 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 615 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; 616 | CLANG_ENABLE_OBJC_WEAK = YES; 617 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 618 | CLANG_WARN_COMMA = YES; 619 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 620 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 621 | CLANG_WARN_INFINITE_RECURSION = YES; 622 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 623 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 624 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 625 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 626 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 627 | CLANG_WARN_STRICT_PROTOTYPES = YES; 628 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 629 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 630 | CLANG_WARN_UNREACHABLE_CODE = YES; 631 | CODE_SIGN_ENTITLEMENTS = "SDWebImageSVGNativeCoder_Example-macOS/SDWebImageSVGNativeCoder_Example_macOS.entitlements"; 632 | CODE_SIGN_STYLE = Automatic; 633 | COMBINE_HIDPI_IMAGES = YES; 634 | COPY_PHASE_STRIP = NO; 635 | CURRENT_PROJECT_VERSION = 1; 636 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 637 | ENABLE_STRICT_OBJC_MSGSEND = YES; 638 | GCC_C_LANGUAGE_STANDARD = gnu11; 639 | GCC_NO_COMMON_BLOCKS = YES; 640 | GENERATE_INFOPLIST_FILE = YES; 641 | INFOPLIST_FILE = "SDWebImageSVGNativeCoder-Example-macOS-Info.plist"; 642 | INFOPLIST_KEY_NSHumanReadableCopyright = "Copyright © 2024 dreampiggy. All rights reserved."; 643 | INFOPLIST_KEY_NSMainStoryboardFile = Main; 644 | INFOPLIST_KEY_NSPrincipalClass = NSApplication; 645 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks"; 646 | MACOSX_DEPLOYMENT_TARGET = 10.15; 647 | MARKETING_VERSION = 1.0; 648 | MTL_ENABLE_DEBUG_INFO = NO; 649 | MTL_FAST_MATH = YES; 650 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.SDWebImageSVGNativeCoder-Example-macOS"; 651 | PRODUCT_NAME = "$(TARGET_NAME)"; 652 | SDKROOT = macosx; 653 | SWIFT_EMIT_LOC_STRINGS = YES; 654 | }; 655 | name = Release; 656 | }; 657 | 6003F5BD195388D20070C39A /* Debug */ = { 658 | isa = XCBuildConfiguration; 659 | buildSettings = { 660 | ALWAYS_SEARCH_USER_PATHS = NO; 661 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 662 | CLANG_CXX_LIBRARY = "libc++"; 663 | CLANG_ENABLE_MODULES = YES; 664 | CLANG_ENABLE_OBJC_ARC = YES; 665 | CLANG_WARN_BOOL_CONVERSION = YES; 666 | CLANG_WARN_CONSTANT_CONVERSION = YES; 667 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 668 | CLANG_WARN_EMPTY_BODY = YES; 669 | CLANG_WARN_ENUM_CONVERSION = YES; 670 | CLANG_WARN_INT_CONVERSION = YES; 671 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 672 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 673 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 674 | COPY_PHASE_STRIP = NO; 675 | ENABLE_TESTABILITY = YES; 676 | GCC_C_LANGUAGE_STANDARD = gnu99; 677 | GCC_DYNAMIC_NO_PIC = NO; 678 | GCC_OPTIMIZATION_LEVEL = 0; 679 | GCC_PREPROCESSOR_DEFINITIONS = ( 680 | "DEBUG=1", 681 | "$(inherited)", 682 | ); 683 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 684 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 685 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 686 | GCC_WARN_UNDECLARED_SELECTOR = YES; 687 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 688 | GCC_WARN_UNUSED_FUNCTION = YES; 689 | GCC_WARN_UNUSED_VARIABLE = YES; 690 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 691 | ONLY_ACTIVE_ARCH = YES; 692 | SDKROOT = iphoneos; 693 | TARGETED_DEVICE_FAMILY = "1,2"; 694 | }; 695 | name = Debug; 696 | }; 697 | 6003F5BE195388D20070C39A /* Release */ = { 698 | isa = XCBuildConfiguration; 699 | buildSettings = { 700 | ALWAYS_SEARCH_USER_PATHS = NO; 701 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 702 | CLANG_CXX_LIBRARY = "libc++"; 703 | CLANG_ENABLE_MODULES = YES; 704 | CLANG_ENABLE_OBJC_ARC = YES; 705 | CLANG_WARN_BOOL_CONVERSION = YES; 706 | CLANG_WARN_CONSTANT_CONVERSION = YES; 707 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 708 | CLANG_WARN_EMPTY_BODY = YES; 709 | CLANG_WARN_ENUM_CONVERSION = YES; 710 | CLANG_WARN_INT_CONVERSION = YES; 711 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 712 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 713 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 714 | COPY_PHASE_STRIP = YES; 715 | ENABLE_NS_ASSERTIONS = NO; 716 | GCC_C_LANGUAGE_STANDARD = gnu99; 717 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 718 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 719 | GCC_WARN_UNDECLARED_SELECTOR = YES; 720 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 721 | GCC_WARN_UNUSED_FUNCTION = YES; 722 | GCC_WARN_UNUSED_VARIABLE = YES; 723 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 724 | SDKROOT = iphoneos; 725 | TARGETED_DEVICE_FAMILY = "1,2"; 726 | VALIDATE_PRODUCT = YES; 727 | }; 728 | name = Release; 729 | }; 730 | 6003F5C0195388D20070C39A /* Debug */ = { 731 | isa = XCBuildConfiguration; 732 | baseConfigurationReference = 7AE974B3D45205AAB2365343 /* Pods-SDWebImageSVGNativeCoder_Example.debug.xcconfig */; 733 | buildSettings = { 734 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 735 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 736 | GCC_PREFIX_HEADER = "SDWebImageSVGNativeCoder/SDWebImageSVGNativeCoder-Prefix.pch"; 737 | INFOPLIST_FILE = "SDWebImageSVGNativeCoder/SDWebImageSVGNativeCoder-Info.plist"; 738 | MODULE_NAME = ExampleApp; 739 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}"; 740 | PRODUCT_NAME = "$(TARGET_NAME)"; 741 | SWIFT_VERSION = 4.0; 742 | WRAPPER_EXTENSION = app; 743 | }; 744 | name = Debug; 745 | }; 746 | 6003F5C1195388D20070C39A /* Release */ = { 747 | isa = XCBuildConfiguration; 748 | baseConfigurationReference = 38B849457147DBB1B7EAAC72 /* Pods-SDWebImageSVGNativeCoder_Example.release.xcconfig */; 749 | buildSettings = { 750 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 751 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 752 | GCC_PREFIX_HEADER = "SDWebImageSVGNativeCoder/SDWebImageSVGNativeCoder-Prefix.pch"; 753 | INFOPLIST_FILE = "SDWebImageSVGNativeCoder/SDWebImageSVGNativeCoder-Info.plist"; 754 | MODULE_NAME = ExampleApp; 755 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}"; 756 | PRODUCT_NAME = "$(TARGET_NAME)"; 757 | SWIFT_VERSION = 4.0; 758 | WRAPPER_EXTENSION = app; 759 | }; 760 | name = Release; 761 | }; 762 | 6003F5C3195388D20070C39A /* Debug */ = { 763 | isa = XCBuildConfiguration; 764 | baseConfigurationReference = 3BDB93D2EA345E9B655AB9F8 /* Pods-SDWebImageSVGNativeCoder_Tests.debug.xcconfig */; 765 | buildSettings = { 766 | BUNDLE_LOADER = "$(TEST_HOST)"; 767 | FRAMEWORK_SEARCH_PATHS = ( 768 | "$(PLATFORM_DIR)/Developer/Library/Frameworks", 769 | "$(inherited)", 770 | "$(DEVELOPER_FRAMEWORKS_DIR)", 771 | ); 772 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 773 | GCC_PREFIX_HEADER = "Tests/Tests-Prefix.pch"; 774 | GCC_PREPROCESSOR_DEFINITIONS = ( 775 | "DEBUG=1", 776 | "$(inherited)", 777 | ); 778 | INFOPLIST_FILE = "Tests/Tests-Info.plist"; 779 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}"; 780 | PRODUCT_NAME = "$(TARGET_NAME)"; 781 | SWIFT_VERSION = 4.0; 782 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SDWebImageSVGNativeCoder_Example.app/SDWebImageSVGNativeCoder_Example"; 783 | WRAPPER_EXTENSION = xctest; 784 | }; 785 | name = Debug; 786 | }; 787 | 6003F5C4195388D20070C39A /* Release */ = { 788 | isa = XCBuildConfiguration; 789 | baseConfigurationReference = FA1C2839C5EDC47CCD24FDF0 /* Pods-SDWebImageSVGNativeCoder_Tests.release.xcconfig */; 790 | buildSettings = { 791 | BUNDLE_LOADER = "$(TEST_HOST)"; 792 | FRAMEWORK_SEARCH_PATHS = ( 793 | "$(PLATFORM_DIR)/Developer/Library/Frameworks", 794 | "$(inherited)", 795 | "$(DEVELOPER_FRAMEWORKS_DIR)", 796 | ); 797 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 798 | GCC_PREFIX_HEADER = "Tests/Tests-Prefix.pch"; 799 | INFOPLIST_FILE = "Tests/Tests-Info.plist"; 800 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier}"; 801 | PRODUCT_NAME = "$(TARGET_NAME)"; 802 | SWIFT_VERSION = 4.0; 803 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/SDWebImageSVGNativeCoder_Example.app/SDWebImageSVGNativeCoder_Example"; 804 | WRAPPER_EXTENSION = xctest; 805 | }; 806 | name = Release; 807 | }; 808 | /* End XCBuildConfiguration section */ 809 | 810 | /* Begin XCConfigurationList section */ 811 | 321D15002B4FE50D008F7FAA /* Build configuration list for PBXNativeTarget "SDWebImageSVGNativeCoder_Example-macOS" */ = { 812 | isa = XCConfigurationList; 813 | buildConfigurations = ( 814 | 321D14FE2B4FE50D008F7FAA /* Debug */, 815 | 321D14FF2B4FE50D008F7FAA /* Release */, 816 | ); 817 | defaultConfigurationIsVisible = 0; 818 | defaultConfigurationName = Release; 819 | }; 820 | 6003F585195388D10070C39A /* Build configuration list for PBXProject "SDWebImageSVGNativeCoder" */ = { 821 | isa = XCConfigurationList; 822 | buildConfigurations = ( 823 | 6003F5BD195388D20070C39A /* Debug */, 824 | 6003F5BE195388D20070C39A /* Release */, 825 | ); 826 | defaultConfigurationIsVisible = 0; 827 | defaultConfigurationName = Release; 828 | }; 829 | 6003F5BF195388D20070C39A /* Build configuration list for PBXNativeTarget "SDWebImageSVGNativeCoder_Example" */ = { 830 | isa = XCConfigurationList; 831 | buildConfigurations = ( 832 | 6003F5C0195388D20070C39A /* Debug */, 833 | 6003F5C1195388D20070C39A /* Release */, 834 | ); 835 | defaultConfigurationIsVisible = 0; 836 | defaultConfigurationName = Release; 837 | }; 838 | 6003F5C2195388D20070C39A /* Build configuration list for PBXNativeTarget "SDWebImageSVGNativeCoder_Tests" */ = { 839 | isa = XCConfigurationList; 840 | buildConfigurations = ( 841 | 6003F5C3195388D20070C39A /* Debug */, 842 | 6003F5C4195388D20070C39A /* Release */, 843 | ); 844 | defaultConfigurationIsVisible = 0; 845 | defaultConfigurationName = Release; 846 | }; 847 | /* End XCConfigurationList section */ 848 | }; 849 | rootObject = 6003F582195388D10070C39A /* Project object */; 850 | } 851 | -------------------------------------------------------------------------------- /Example/SDWebImageSVGNativeCoder.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/SDWebImageSVGNativeCoder.xcodeproj/xcshareddata/xcschemes/SDWebImageSVGNativeCoder-Example.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 37 | 38 | 39 | 40 | 42 | 48 | 49 | 50 | 51 | 52 | 62 | 64 | 70 | 71 | 72 | 73 | 79 | 81 | 87 | 88 | 89 | 90 | 92 | 93 | 96 | 97 | 98 | -------------------------------------------------------------------------------- /Example/SDWebImageSVGNativeCoder.xcodeproj/xcshareddata/xcschemes/SDWebImageSVGNativeCoder_Example-macOS.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 43 | 45 | 51 | 52 | 53 | 54 | 60 | 62 | 68 | 69 | 70 | 71 | 73 | 74 | 77 | 78 | 79 | -------------------------------------------------------------------------------- /Example/SDWebImageSVGNativeCoder.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/SDWebImageSVGNativeCoder/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /Example/SDWebImageSVGNativeCoder/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /Example/SDWebImageSVGNativeCoder/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "20x20", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "20x20", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "29x29", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "29x29", 61 | "scale" : "2x" 62 | }, 63 | { 64 | "idiom" : "ipad", 65 | "size" : "40x40", 66 | "scale" : "1x" 67 | }, 68 | { 69 | "idiom" : "ipad", 70 | "size" : "40x40", 71 | "scale" : "2x" 72 | }, 73 | { 74 | "idiom" : "ipad", 75 | "size" : "76x76", 76 | "scale" : "1x" 77 | }, 78 | { 79 | "idiom" : "ipad", 80 | "size" : "76x76", 81 | "scale" : "2x" 82 | }, 83 | { 84 | "idiom" : "ipad", 85 | "size" : "83.5x83.5", 86 | "scale" : "2x" 87 | }, 88 | { 89 | "idiom" : "ios-marketing", 90 | "size" : "1024x1024", 91 | "scale" : "1x" 92 | } 93 | ], 94 | "info" : { 95 | "version" : 1, 96 | "author" : "xcode" 97 | } 98 | } 99 | -------------------------------------------------------------------------------- /Example/SDWebImageSVGNativeCoder/SDAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // SDAppDelegate.h 3 | // SDWebImageSVGNativeCoder 4 | // 5 | // Created by dreampiggy on 08/01/2022. 6 | // Copyright (c) 2022 dreampiggy. All rights reserved. 7 | // 8 | 9 | @import UIKit; 10 | 11 | @interface SDAppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /Example/SDWebImageSVGNativeCoder/SDAppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDAppDelegate.m 3 | // SDWebImageSVGNativeCoder 4 | // 5 | // Created by dreampiggy on 08/01/2022. 6 | // Copyright (c) 2022 dreampiggy. All rights reserved. 7 | // 8 | 9 | #import "SDAppDelegate.h" 10 | 11 | @implementation SDAppDelegate 12 | 13 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 14 | { 15 | // Override point for customization after application launch. 16 | return YES; 17 | } 18 | 19 | - (void)applicationWillResignActive:(UIApplication *)application 20 | { 21 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 22 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 23 | } 24 | 25 | - (void)applicationDidEnterBackground:(UIApplication *)application 26 | { 27 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 28 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 29 | } 30 | 31 | - (void)applicationWillEnterForeground:(UIApplication *)application 32 | { 33 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 34 | } 35 | 36 | - (void)applicationDidBecomeActive:(UIApplication *)application 37 | { 38 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 39 | } 40 | 41 | - (void)applicationWillTerminate:(UIApplication *)application 42 | { 43 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 44 | } 45 | 46 | @end 47 | -------------------------------------------------------------------------------- /Example/SDWebImageSVGNativeCoder/SDViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // SDViewController.h 3 | // SDWebImageSVGNativeCoder 4 | // 5 | // Created by dreampiggy on 08/01/2022. 6 | // Copyright (c) 2022 dreampiggy. All rights reserved. 7 | // 8 | 9 | @import UIKit; 10 | 11 | @interface SDViewController : UIViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Example/SDWebImageSVGNativeCoder/SDViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDViewController.m 3 | // SDWebImageSVGNativeCoder 4 | // 5 | // Created by dreampiggy on 08/01/2022. 6 | // Copyright (c) 2022 dreampiggy. All rights reserved. 7 | // 8 | 9 | #import "SDViewController.h" 10 | #import 11 | 12 | @interface SDViewController () 13 | 14 | @end 15 | 16 | @implementation SDViewController 17 | 18 | - (void)viewDidLoad 19 | { 20 | [super viewDidLoad]; 21 | // Do any additional setup after loading the view, typically from a nib. 22 | 23 | SDImageSVGNativeCoder *SVGNativeCoder = [SDImageSVGNativeCoder sharedCoder]; 24 | [[SDImageCodersManager sharedManager] addCoder:SVGNativeCoder]; 25 | NSURL *svgURL = [NSURL URLWithString:@"https://s3-symbol-logo.tradingview.com/adobe--big.svg"]; 26 | NSURL *svgURL2 = [NSURL URLWithString:@"https://s3-symbol-logo.tradingview.com/apple--big.svg"]; 27 | 28 | CGSize screenSize = self.view.bounds.size; 29 | 30 | UIImageView *imageView1 = [[UIImageView alloc] init]; 31 | imageView1.frame = CGRectMake(0, 0, screenSize.width, screenSize.height / 2); 32 | imageView1.contentMode = UIViewContentModeScaleAspectFit; 33 | imageView1.clipsToBounds = YES; 34 | 35 | UIImageView *imageView2 = [[UIImageView alloc] init]; 36 | imageView2.frame = CGRectMake(0, screenSize.height / 2, screenSize.width, screenSize.height / 2); 37 | imageView2.contentMode = UIViewContentModeScaleAspectFit; 38 | 39 | [self.view addSubview:imageView1]; 40 | [self.view addSubview:imageView2]; 41 | 42 | [imageView1 sd_setImageWithURL:svgURL placeholderImage:nil options:SDWebImageRetryFailed context:@{SDWebImageContextImageThumbnailPixelSize: @(CGSizeMake(1000, 1000))} progress:nil completed:^(UIImage * _Nullable image, NSError * _Nullable error, SDImageCacheType cacheType, NSURL * _Nullable imageURL) { 43 | if (image) { 44 | NSLog(@"SVG1 load success"); 45 | } 46 | }]; 47 | [imageView2 sd_setImageWithURL:svgURL2 placeholderImage:nil options:SDWebImageRetryFailed context:@{SDWebImageContextImageThumbnailPixelSize: @(CGSizeMake(1000, 1000))} progress:nil completed:^(UIImage * _Nullable image, NSError * _Nullable error, SDImageCacheType cacheType, NSURL * _Nullable imageURL) { 48 | if (image) { 49 | NSLog(@"SVG2 load success"); 50 | } 51 | }]; 52 | } 53 | 54 | - (void)didReceiveMemoryWarning 55 | { 56 | [super didReceiveMemoryWarning]; 57 | // Dispose of any resources that can be recreated. 58 | } 59 | 60 | @end 61 | -------------------------------------------------------------------------------- /Example/SDWebImageSVGNativeCoder/SDWebImageSVGNativeCoder-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ${PRODUCT_NAME} 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1.0 25 | LSRequiresIPhoneOS 26 | 27 | UILaunchStoryboardName 28 | LaunchScreen 29 | UIMainStoryboardFile 30 | Main 31 | UIRequiredDeviceCapabilities 32 | 33 | armv7 34 | 35 | UISupportedInterfaceOrientations 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationLandscapeLeft 39 | UIInterfaceOrientationLandscapeRight 40 | 41 | UISupportedInterfaceOrientations~ipad 42 | 43 | UIInterfaceOrientationPortrait 44 | UIInterfaceOrientationPortraitUpsideDown 45 | UIInterfaceOrientationLandscapeLeft 46 | UIInterfaceOrientationLandscapeRight 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /Example/SDWebImageSVGNativeCoder/SDWebImageSVGNativeCoder-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header 3 | // 4 | // The contents of this file are implicitly included at the beginning of every source file. 5 | // 6 | 7 | #import 8 | 9 | #ifndef __IPHONE_5_0 10 | #warning "This project uses features only available in iOS SDK 5.0 and later." 11 | #endif 12 | 13 | #ifdef __OBJC__ 14 | @import UIKit; 15 | @import Foundation; 16 | #endif 17 | -------------------------------------------------------------------------------- /Example/SDWebImageSVGNativeCoder/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /Example/SDWebImageSVGNativeCoder/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // SDWebImageSVGNativeCoder 4 | // 5 | // Created by dreampiggy on 08/01/2022. 6 | // Copyright (c) 2022 dreampiggy. All rights reserved. 7 | // 8 | 9 | @import UIKit; 10 | #import "SDAppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) 13 | { 14 | @autoreleasepool { 15 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([SDAppDelegate class])); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Example/SDWebImageSVGNativeCoder_Example-macOS/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // SDWebImageSVGNativeCoder_Example-macOS 4 | // 5 | // Created by lizhuoli on 2024/1/11. 6 | // Copyright © 2024 dreampiggy. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AppDelegate : NSObject 12 | 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /Example/SDWebImageSVGNativeCoder_Example-macOS/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // SDWebImageSVGNativeCoder_Example-macOS 4 | // 5 | // Created by lizhuoli on 2024/1/11. 6 | // Copyright © 2024 dreampiggy. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | 11 | @interface AppDelegate () 12 | 13 | 14 | @end 15 | 16 | @implementation AppDelegate 17 | 18 | - (void)applicationDidFinishLaunching:(NSNotification *)aNotification { 19 | // Insert code here to initialize your application 20 | } 21 | 22 | 23 | - (void)applicationWillTerminate:(NSNotification *)aNotification { 24 | // Insert code here to tear down your application 25 | } 26 | 27 | 28 | - (BOOL)applicationSupportsSecureRestorableState:(NSApplication *)app { 29 | return YES; 30 | } 31 | 32 | 33 | @end 34 | -------------------------------------------------------------------------------- /Example/SDWebImageSVGNativeCoder_Example-macOS/Assets.xcassets/AccentColor.colorset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "colors" : [ 3 | { 4 | "idiom" : "universal" 5 | } 6 | ], 7 | "info" : { 8 | "author" : "xcode", 9 | "version" : 1 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Example/SDWebImageSVGNativeCoder_Example-macOS/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "mac", 5 | "scale" : "1x", 6 | "size" : "16x16" 7 | }, 8 | { 9 | "idiom" : "mac", 10 | "scale" : "2x", 11 | "size" : "16x16" 12 | }, 13 | { 14 | "idiom" : "mac", 15 | "scale" : "1x", 16 | "size" : "32x32" 17 | }, 18 | { 19 | "idiom" : "mac", 20 | "scale" : "2x", 21 | "size" : "32x32" 22 | }, 23 | { 24 | "idiom" : "mac", 25 | "scale" : "1x", 26 | "size" : "128x128" 27 | }, 28 | { 29 | "idiom" : "mac", 30 | "scale" : "2x", 31 | "size" : "128x128" 32 | }, 33 | { 34 | "idiom" : "mac", 35 | "scale" : "1x", 36 | "size" : "256x256" 37 | }, 38 | { 39 | "idiom" : "mac", 40 | "scale" : "2x", 41 | "size" : "256x256" 42 | }, 43 | { 44 | "idiom" : "mac", 45 | "scale" : "1x", 46 | "size" : "512x512" 47 | }, 48 | { 49 | "idiom" : "mac", 50 | "scale" : "2x", 51 | "size" : "512x512" 52 | } 53 | ], 54 | "info" : { 55 | "author" : "xcode", 56 | "version" : 1 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /Example/SDWebImageSVGNativeCoder_Example-macOS/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /Example/SDWebImageSVGNativeCoder_Example-macOS/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | 310 | 311 | 312 | 313 | 314 | 315 | 316 | 317 | 318 | 319 | 320 | 321 | 322 | 323 | 324 | 325 | 326 | 327 | 328 | 329 | 330 | 331 | 332 | 333 | 334 | 335 | 336 | 337 | 338 | 339 | 340 | 341 | 342 | 343 | 344 | 345 | 346 | 347 | 348 | 349 | 350 | 351 | 352 | 353 | 354 | 355 | 356 | 357 | 358 | 359 | 360 | 361 | 362 | 363 | 364 | 365 | 366 | 367 | 368 | 369 | 370 | 371 | 372 | 373 | 374 | 375 | 376 | 377 | 378 | 379 | 380 | 381 | 382 | 383 | 384 | 385 | 386 | 387 | 388 | 389 | 390 | 391 | 392 | 393 | 394 | 395 | 396 | 397 | 398 | 399 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 427 | 428 | 429 | 430 | 431 | 432 | 433 | 434 | 435 | 436 | 437 | 438 | 439 | 440 | 441 | 442 | 443 | 444 | 445 | 446 | 447 | 448 | 449 | 450 | 451 | 452 | 453 | 454 | 455 | 456 | 457 | 458 | 459 | 460 | 461 | 462 | 463 | 464 | 465 | 466 | 467 | 468 | 469 | 470 | 471 | 472 | 473 | 474 | 475 | 476 | 477 | 478 | 479 | 480 | 481 | 482 | 483 | 484 | 485 | 486 | 487 | 488 | 489 | 490 | 491 | 492 | 493 | 494 | 495 | 496 | 497 | 498 | 499 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 509 | 510 | 511 | 512 | 513 | 514 | 515 | 516 | 517 | 518 | 519 | 520 | 521 | 522 | 523 | 524 | 525 | 526 | 527 | 528 | Default 529 | 530 | 531 | 532 | 533 | 534 | 535 | Left to Right 536 | 537 | 538 | 539 | 540 | 541 | 542 | Right to Left 543 | 544 | 545 | 546 | 547 | 548 | 549 | 550 | 551 | 552 | 553 | Default 554 | 555 | 556 | 557 | 558 | 559 | 560 | Left to Right 561 | 562 | 563 | 564 | 565 | 566 | 567 | Right to Left 568 | 569 | 570 | 571 | 572 | 573 | 574 | 575 | 576 | 577 | 578 | 579 | 580 | 581 | 582 | 583 | 584 | 585 | 586 | 587 | 588 | 589 | 590 | 591 | 592 | 593 | 594 | 595 | 596 | 597 | 598 | 599 | 600 | 601 | 602 | 603 | 604 | 605 | 606 | 607 | 608 | 609 | 610 | 611 | 612 | 613 | 614 | 615 | 616 | 617 | 618 | 619 | 620 | 621 | 622 | 623 | 624 | 625 | 626 | 627 | 628 | 629 | 630 | 631 | 632 | 633 | 634 | 635 | 636 | 637 | 638 | 639 | 640 | 641 | 642 | 643 | 644 | 645 | 646 | 647 | 648 | 649 | 650 | 651 | 652 | 653 | 654 | 655 | 656 | 657 | 658 | 659 | 660 | 661 | 662 | 663 | 664 | 665 | 666 | 667 | 668 | 669 | 670 | 671 | 672 | 673 | 674 | 675 | 676 | 677 | 678 | 679 | 680 | 681 | 682 | 683 | 684 | 685 | 686 | 687 | 688 | 689 | 690 | 691 | 692 | 693 | 694 | 695 | 696 | 697 | 698 | 699 | 700 | 701 | 702 | 703 | 704 | 705 | 706 | 707 | 708 | 709 | 710 | 711 | 712 | 713 | 714 | 715 | 716 | 717 | 718 | -------------------------------------------------------------------------------- /Example/SDWebImageSVGNativeCoder_Example-macOS/SDWebImageSVGNativeCoder_Example_macOS.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Example/SDWebImageSVGNativeCoder_Example-macOS/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // SDWebImageSVGNativeCoder_Example-macOS 4 | // 5 | // Created by lizhuoli on 2024/1/11. 6 | // Copyright © 2024 dreampiggy. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ViewController : NSViewController 12 | 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /Example/SDWebImageSVGNativeCoder_Example-macOS/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // SDWebImageSVGNativeCoder_Example-macOS 4 | // 5 | // Created by lizhuoli on 2024/1/11. 6 | // Copyright © 2024 dreampiggy. All rights reserved. 7 | // 8 | 9 | #import "ViewController.h" 10 | #import 11 | 12 | @implementation ViewController 13 | 14 | - (void)viewDidLoad { 15 | [super viewDidLoad]; 16 | [SDImageCache.sharedImageCache clearDiskOnCompletion:nil]; 17 | 18 | SDImageSVGNativeCoder *SVGNativeCoder = [SDImageSVGNativeCoder sharedCoder]; 19 | [[SDImageCodersManager sharedManager] addCoder:SVGNativeCoder]; 20 | NSURL *svgURL = [NSURL URLWithString:@"https://s3-symbol-logo.tradingview.com/adobe--big.svg"]; 21 | NSURL *svgURL2 = [NSURL URLWithString:@"https://s3-symbol-logo.tradingview.com/apple--big.svg"]; 22 | 23 | CGSize screenSize = self.view.bounds.size; 24 | 25 | UIImageView *imageView1 = [[UIImageView alloc] init]; 26 | imageView1.frame = CGRectMake(0, 0, screenSize.width / 2, screenSize.height); 27 | imageView1.imageScaling = NSImageScaleProportionallyUpOrDown; 28 | 29 | UIImageView *imageView2 = [[UIImageView alloc] init]; 30 | imageView2.frame = CGRectMake(screenSize.width / 2, 0, screenSize.width / 2, screenSize.height); 31 | imageView2.imageScaling = NSImageScaleProportionallyUpOrDown; 32 | 33 | [self.view addSubview:imageView1]; 34 | [self.view addSubview:imageView2]; 35 | 36 | [imageView1 sd_setImageWithURL:svgURL placeholderImage:nil options:SDWebImageRetryFailed context:@{SDWebImageContextImageThumbnailPixelSize: @(CGSizeMake(1000, 1000))} progress:nil completed:^(NSImage * _Nullable image, NSError * _Nullable error, SDImageCacheType cacheType, NSURL * _Nullable imageURL) { 37 | if (image) { 38 | NSLog(@"SVG1 load success"); 39 | } 40 | }]; 41 | [imageView2 sd_setImageWithURL:svgURL2 placeholderImage:nil options:SDWebImageRetryFailed context:@{SDWebImageContextImageThumbnailPixelSize: @(CGSizeMake(1000, 1000))} progress:nil completed:^(NSImage * _Nullable image, NSError * _Nullable error, SDImageCacheType cacheType, NSURL * _Nullable imageURL) { 42 | if (image) { 43 | NSLog(@"SVG2 load success"); 44 | } 45 | }]; 46 | } 47 | 48 | 49 | - (void)setRepresentedObject:(id)representedObject { 50 | [super setRepresentedObject:representedObject]; 51 | 52 | // Update the view, if already loaded. 53 | } 54 | 55 | 56 | @end 57 | -------------------------------------------------------------------------------- /Example/SDWebImageSVGNativeCoder_Example-macOS/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // SDWebImageSVGNativeCoder_Example-macOS 4 | // 5 | // Created by lizhuoli on 2024/1/11. 6 | // Copyright © 2024 dreampiggy. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | int main(int argc, const char * argv[]) { 12 | @autoreleasepool { 13 | // Setup code that might create autoreleased objects goes here. 14 | } 15 | return NSApplicationMain(argc, argv); 16 | } 17 | -------------------------------------------------------------------------------- /Example/Screenshot/SVGDemo-macOS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SDWebImage/SDWebImageSVGNativeCoder/09a6199bbc0899c90382e734bbe07850eae2aa83/Example/Screenshot/SVGDemo-macOS.png -------------------------------------------------------------------------------- /Example/Screenshot/SVGDemo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SDWebImage/SDWebImageSVGNativeCoder/09a6199bbc0899c90382e734bbe07850eae2aa83/Example/Screenshot/SVGDemo.png -------------------------------------------------------------------------------- /Example/Tests/Tests-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | BNDL 15 | CFBundleShortVersionString 16 | 1.0 17 | CFBundleSignature 18 | ???? 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /Example/Tests/Tests-Prefix.pch: -------------------------------------------------------------------------------- 1 | // The contents of this file are implicitly included at the beginning of every test case source file. 2 | 3 | #ifdef __OBJC__ 4 | 5 | 6 | 7 | #endif 8 | -------------------------------------------------------------------------------- /Example/Tests/Tests.m: -------------------------------------------------------------------------------- 1 | // 2 | // SDWebImageSVGNativeCoderTests.m 3 | // SDWebImageSVGNativeCoderTests 4 | // 5 | // Created by dreampiggy on 08/01/2022. 6 | // Copyright (c) 2022 dreampiggy. All rights reserved. 7 | // 8 | 9 | @import XCTest; 10 | 11 | @interface Tests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation Tests 16 | 17 | - (void)setUp 18 | { 19 | [super setUp]; 20 | // Put setup code here. This method is called before the invocation of each test method in the class. 21 | } 22 | 23 | - (void)tearDown 24 | { 25 | // Put teardown code here. This method is called after the invocation of each test method in the class. 26 | [super tearDown]; 27 | } 28 | 29 | - (void)testExample 30 | { 31 | XCTFail(@"No implementation for \"%s\"", __PRETTY_FUNCTION__); 32 | } 33 | 34 | @end 35 | 36 | -------------------------------------------------------------------------------- /Example/Tests/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2022 dreampiggy 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /Package.resolved: -------------------------------------------------------------------------------- 1 | { 2 | "object": { 3 | "pins": [ 4 | { 5 | "package": "SDWebImage", 6 | "repositoryURL": "https://github.com/SDWebImage/SDWebImage.git", 7 | "state": { 8 | "branch": null, 9 | "revision": "3e48cb68d8e668d146dc59c73fb98cb628616236", 10 | "version": "5.13.2" 11 | } 12 | }, 13 | { 14 | "package": "svgnative", 15 | "repositoryURL": "https://github.com/SDWebImage/svgnative-Xcode.git", 16 | "state": { 17 | "branch": null, 18 | "revision": "de560bb9f69bc89f4624855998148eb6e0bb8e60", 19 | "version": "0.1.0" 20 | } 21 | } 22 | ] 23 | }, 24 | "version": 1 25 | } 26 | -------------------------------------------------------------------------------- /Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version:5.1 2 | // The swift-tools-version declares the minimum version of Swift required to build this package. 3 | 4 | import PackageDescription 5 | 6 | let package = Package( 7 | name: "SDWebImageSVGNativeCoder", 8 | platforms: [ 9 | .macOS(.v10_11), .iOS(.v9), .tvOS(.v9), .watchOS(.v2) 10 | ], 11 | products: [ 12 | // Products define the executables and libraries produced by a package, and make them visible to other packages. 13 | .library( 14 | name: "SDWebImageSVGNativeCoder", 15 | targets: ["SDWebImageSVGNativeCoder"]), 16 | ], 17 | dependencies: [ 18 | // Dependencies declare other packages that this package depends on. 19 | // .package(url: /* package url */, from: "1.0.0"), 20 | .package(url: "https://github.com/SDWebImage/SDWebImage.git", from: "5.10.0"), 21 | .package(url: "https://github.com/SDWebImage/svgnative-Xcode.git", from: "0.1.0") 22 | ], 23 | targets: [ 24 | // Targets are the basic building blocks of a package. A target can define a module or a test suite. 25 | // Targets can depend on other targets in this package, and on products in packages which this package depends on. 26 | .target( 27 | name: "SDWebImageSVGNativeCoder", 28 | dependencies: ["SDWebImage", "svgnative"], 29 | path: ".", 30 | sources: ["SDWebImageSVGNativeCoder/Classes"], 31 | publicHeadersPath: "SDWebImageSVGNativeCoder/Classes", 32 | cSettings: [.define("BOOST_VARIANT_DETAIL_NO_SUBSTITUTE", to: "1")], 33 | linkerSettings: [.linkedLibrary("xml2")] 34 | ) 35 | ], 36 | cLanguageStandard: .gnu11, 37 | cxxLanguageStandard: .gnucxx14 38 | ) 39 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # SDWebImageSVGNativeCoder 2 | 3 | [![CI Status](https://img.shields.io/travis/dreampiggy/SDWebImageSVGNativeCoder.svg?style=flat)](https://travis-ci.org/dreampiggy/SDWebImageSVGNativeCoder) 4 | [![Version](https://img.shields.io/cocoapods/v/SDWebImageSVGNativeCoder.svg?style=flat)](https://cocoapods.org/pods/SDWebImageSVGNativeCoder) 5 | [![License](https://img.shields.io/cocoapods/l/SDWebImageSVGNativeCoder.svg?style=flat)](https://cocoapods.org/pods/SDWebImageSVGNativeCoder) 6 | [![Platform](https://img.shields.io/cocoapods/p/SDWebImageSVGNativeCoder.svg?style=flat)](https://cocoapods.org/pods/SDWebImageSVGNativeCoder) 7 | 8 | ## Background 9 | 10 | Currently SDWebImage org provide 3 kinds of SVG Coder Plugin support, here is comparison: 11 | 12 | | Plugin Name| Vector Image | Bitmap Image | Platform | Compatibility | Dependency | 13 | |---|---|---|---|---|---| 14 | | [SVGNativeCoder](https://github.com/SDWebImage/SDWebImageSVGNativeCoder) | NO | YES | iOS 9+ | Best and W3C standard | adobe/svg-native-viewer | 15 | | [SVGCoder](https://github.com/SDWebImage/SDWebImageSVGCoder) | YES | YES | iOS 13+ | OK but buggy on some SVG | Apple CoreSVG(Private) | 16 | | [SVGKitPlugin](https://github.com/SDWebImage/SDWebImageSVGKitPlugin) | YES | NO | iOS 9+ | Worst, no longer maintain | SVGKit/SVGKit 17 | 18 | For now, I recommand to use this SVGNativeCoder (this repo) for most cases, until there are any other native support on Apple platforms. 19 | 20 | ## SVG-Native 21 | 22 | [SVG Native](https://svgwg.org/specs/svg-native/) is an upcoming specification of the SVG WG based on [SVG OpenType](https://docs.microsoft.com/en-us/typography/opentype/spec/svg). 23 | 24 | SVG Native will be a strict subset of SVG 1.1 and SVG 2.0. 25 | 26 | ## Requirements 27 | 28 | + iOS 9+ 29 | + tvOS 9+ 30 | + macOS 10.11+ 31 | + watchOS 2+ 32 | 33 | ## Installation 34 | 35 | #### CocoaPods 36 | 37 | SDWebImageSVGNativeCoder is available through [CocoaPods](https://cocoapods.org). To install 38 | it, simply add the following line to your Podfile: 39 | 40 | ```ruby 41 | pod 'SDWebImageSVGNativeCoder' 42 | ``` 43 | 44 | Note: 45 | 46 | It's strongly recommended to use CocoaPods v1.7+ with multiple Xcode Projects, which can avoid issues when different header file contains the same file name. This applys to all SDWebImage organization maintained repo. 47 | 48 | ```ruby 49 | install! 'cocoapods', generate_multiple_pod_projects: true 50 | ``` 51 | 52 | #### Carthage 53 | 54 | SDWebImageSVGNativeCoder is available through [Carthage](https://github.com/Carthage/Carthage). 55 | 56 | ``` 57 | github "SDWebImage/SDWebImageSVGNativeCoder" 58 | ``` 59 | 60 | #### Swift Package Manager 61 | 62 | SDWebImageSVGNativeCoder is available through [Swift Package Manager](https://swift.org/package-manager). 63 | 64 | ```swift 65 | let package = Package( 66 | dependencies: [ 67 | .package(url: "https://github.com/SDWebImage/SDWebImageSVGNativeCoder.git", from: "0.1") 68 | ] 69 | ) 70 | ``` 71 | 72 | ## Usage 73 | 74 | ### Register Coder Plugin 75 | 76 | To use SVG coder, you should firstly add the `SDImageSVGNativeCoder` to the coders manager. Then you can call the View Category method to start load SVG images. See [Wiki - Coder Usage](https://github.com/SDWebImage/SDWebImage/wiki/Advanced-Usage#coder-usage) here for these steps. 77 | 78 | + Objective-C 79 | 80 | ```objectivec 81 | // register coder, on AppDelegate 82 | SDImageSVGNativeCoder *SVGCoder = [SDImageSVGNativeCoder sharedCoder]; 83 | [[SDImageCodersManager sharedManager] addCoder:SVGCoder]; 84 | ``` 85 | 86 | + Swift 87 | 88 | ```swift 89 | // register coder, on AppDelegate 90 | let SVGCoder = SDImageSVGNativeCoder.shared 91 | SDImageCodersManager.shared.addCoder(SVGCoder) 92 | ``` 93 | 94 | 95 | ### Render SVG as bitmap image 96 | 97 | This coder plugin only support bitmap SVG image, which means once you load an image, even you change the image view size, the image size will not dynamic change and has to stretch up and may be blur. So you'd better provide the suitable large enough image size (like your image view size). 98 | 99 | By default it use the SVG viewBox size. You can also specify a desired size during image loading using `.imageThumbnailPixelSize` context option. And you can specify whether or not to keep aspect ratio during scale using `.imagePreserveAspectRatio` context option. 100 | 101 | + Objective-C 102 | 103 | ```objectivec 104 | UIImageView *imageView; 105 | CGSize bitmapSize = CGSizeMake(500, 500); 106 | [imageView sd_setImageWithURL:url placeholderImage:nil options:0 context:@{SDWebImageContextThumbnailPixelSize: @(bitmapSize)]; 107 | ``` 108 | 109 | + Swift 110 | 111 | ```swift 112 | let imageView: UIImageView 113 | let bitmapSize = CGSize(width: 500, height: 500) 114 | imageView.sd_setImage(with: url, placeholderImage: nil, options: [], context: [.imageThumbnailPixelSize : bitmapSize]) 115 | ``` 116 | 117 | ## Example 118 | 119 | To run the example project, clone the repo, and run `pod install` from the Example directory first. 120 | 121 | ## Screenshot 122 | 123 | 124 | 125 | 126 | ## Author 127 | 128 | DreamPiggy 129 | 130 | ## License 131 | 132 | SDWebImageSVGNativeCoder is available under the MIT license. See the LICENSE file for more info. 133 | -------------------------------------------------------------------------------- /SDWebImageSVGNativeCoder.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # Be sure to run `pod lib lint SDWebImageSVGNativeCoder.podspec' to ensure this is a 3 | # valid spec before submitting. 4 | # 5 | # Any lines starting with a # are optional, but their use is encouraged 6 | # To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html 7 | # 8 | 9 | Pod::Spec.new do |s| 10 | s.name = 'SDWebImageSVGNativeCoder' 11 | s.version = '0.2.0' 12 | s.summary = 'SVG-Native vector image coder plugin for SDWebImage.' 13 | 14 | # This description is used to generate tags and improve search results. 15 | # * Think: What does it do? Why did you write it? What is the focus? 16 | # * Try to keep it short, snappy and to the point. 17 | # * Write the description between the DESC delimiters below. 18 | # * Finally, don't worry about the indent, CocoaPods strips it! 19 | 20 | s.description = <<-DESC 21 | This SDWebImage coder plugin, use adobe svg-native-viewer library to provide SVG-Native (subset of SVG 1.1) vector image support 22 | DESC 23 | 24 | s.homepage = 'https://github.com/SDWebImage/SDWebImageSVGNativeCoder' 25 | s.license = { :type => 'MIT', :file => 'LICENSE' } 26 | s.author = { 'dreampiggy' => 'lizhuoli1126@126.com' } 27 | s.source = { :git => 'https://github.com/SDWebImage/SDWebImageSVGNativeCoder.git', :tag => s.version.to_s } 28 | 29 | s.ios.deployment_target = '9.0' 30 | s.osx.deployment_target = '10.11' 31 | s.tvos.deployment_target = '9.0' 32 | s.watchos.deployment_target = '2.0' 33 | 34 | s.source_files = 'SDWebImageSVGNativeCoder/Classes/**/*' 35 | s.pod_target_xcconfig = { 36 | 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) BOOST_VARIANT_DETAIL_NO_SUBSTITUTE=1', 37 | 'HEADER_SEARCH_PATHS' => '$(inherited) ${PODS_ROOT}/svgnative/svg-native-viewer/svgnative/include ${PODS_ROOT}/svgnative/svg-native-viewer/third_party/boost_variant_property_tree' 38 | } 39 | 40 | s.dependency 'SDWebImage', '~> 5.10' 41 | s.dependency 'svgnative', '~> 0.1' 42 | s.libraries = 'c++', 'xml2' 43 | end 44 | -------------------------------------------------------------------------------- /SDWebImageSVGNativeCoder.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 55; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 3288E18F289A7D180008ABDF /* SDWebImageSVGNativeCoder.h in Headers */ = {isa = PBXBuildFile; fileRef = 3288E189289A7D180008ABDF /* SDWebImageSVGNativeCoder.h */; settings = {ATTRIBUTES = (Public, ); }; }; 11 | 3288E190289A7D180008ABDF /* SDWebImageSVGNativeCoder.h in Headers */ = {isa = PBXBuildFile; fileRef = 3288E189289A7D180008ABDF /* SDWebImageSVGNativeCoder.h */; settings = {ATTRIBUTES = (Public, ); }; }; 12 | 3288E191289A7D180008ABDF /* SDWebImageSVGNativeCoder.h in Headers */ = {isa = PBXBuildFile; fileRef = 3288E189289A7D180008ABDF /* SDWebImageSVGNativeCoder.h */; settings = {ATTRIBUTES = (Public, ); }; }; 13 | 3288E192289A7D180008ABDF /* SDWebImageSVGNativeCoder.h in Headers */ = {isa = PBXBuildFile; fileRef = 3288E189289A7D180008ABDF /* SDWebImageSVGNativeCoder.h */; settings = {ATTRIBUTES = (Public, ); }; }; 14 | 3288E197289A7D180008ABDF /* SDImageSVGNativeCoder.mm in Sources */ = {isa = PBXBuildFile; fileRef = 3288E18B289A7D180008ABDF /* SDImageSVGNativeCoder.mm */; }; 15 | 3288E198289A7D180008ABDF /* SDImageSVGNativeCoder.mm in Sources */ = {isa = PBXBuildFile; fileRef = 3288E18B289A7D180008ABDF /* SDImageSVGNativeCoder.mm */; }; 16 | 3288E199289A7D180008ABDF /* SDImageSVGNativeCoder.mm in Sources */ = {isa = PBXBuildFile; fileRef = 3288E18B289A7D180008ABDF /* SDImageSVGNativeCoder.mm */; }; 17 | 3288E19A289A7D180008ABDF /* SDImageSVGNativeCoder.mm in Sources */ = {isa = PBXBuildFile; fileRef = 3288E18B289A7D180008ABDF /* SDImageSVGNativeCoder.mm */; }; 18 | 3288E19B289A7D180008ABDF /* SDImageSVGNativeCoder.h in Headers */ = {isa = PBXBuildFile; fileRef = 3288E18C289A7D180008ABDF /* SDImageSVGNativeCoder.h */; settings = {ATTRIBUTES = (Public, ); }; }; 19 | 3288E19C289A7D180008ABDF /* SDImageSVGNativeCoder.h in Headers */ = {isa = PBXBuildFile; fileRef = 3288E18C289A7D180008ABDF /* SDImageSVGNativeCoder.h */; settings = {ATTRIBUTES = (Public, ); }; }; 20 | 3288E19D289A7D180008ABDF /* SDImageSVGNativeCoder.h in Headers */ = {isa = PBXBuildFile; fileRef = 3288E18C289A7D180008ABDF /* SDImageSVGNativeCoder.h */; settings = {ATTRIBUTES = (Public, ); }; }; 21 | 3288E19E289A7D180008ABDF /* SDImageSVGNativeCoder.h in Headers */ = {isa = PBXBuildFile; fileRef = 3288E18C289A7D180008ABDF /* SDImageSVGNativeCoder.h */; settings = {ATTRIBUTES = (Public, ); }; }; 22 | 3288E1A5289A7D3A0008ABDF /* SDWebImage.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3288E1A4289A7D3A0008ABDF /* SDWebImage.framework */; }; 23 | 3288E1A9289A7D470008ABDF /* svgnative.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3288E1A8289A7D470008ABDF /* svgnative.framework */; }; 24 | 3288E1B1289A80F30008ABDF /* boost.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3288E1B0289A80F30008ABDF /* boost.framework */; }; 25 | 3288E1B4289A82F20008ABDF /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3288E1B3289A82F20008ABDF /* CoreGraphics.framework */; }; 26 | 3288E1B8289A83390008ABDF /* SDWebImage.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3288E1B5289A83390008ABDF /* SDWebImage.framework */; }; 27 | 3288E1BA289A83390008ABDF /* svgnative.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3288E1B6289A83390008ABDF /* svgnative.framework */; }; 28 | 3288E1BC289A83390008ABDF /* boost.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3288E1B7289A83390008ABDF /* boost.framework */; }; 29 | 3288E1C2289A83570008ABDF /* svgnative.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3288E1BF289A83570008ABDF /* svgnative.framework */; }; 30 | 3288E1C4289A83570008ABDF /* SDWebImage.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3288E1C0289A83570008ABDF /* SDWebImage.framework */; }; 31 | 3288E1C6289A83570008ABDF /* boost.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3288E1C1289A83570008ABDF /* boost.framework */; }; 32 | 3288E1CC289A83650008ABDF /* boost.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3288E1C9289A83650008ABDF /* boost.framework */; }; 33 | 3288E1CE289A83650008ABDF /* SDWebImage.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3288E1CA289A83650008ABDF /* SDWebImage.framework */; }; 34 | 3288E1D0289A83650008ABDF /* svgnative.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3288E1CB289A83650008ABDF /* svgnative.framework */; }; 35 | 3288E1D6289A836F0008ABDF /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3288E1D5289A836F0008ABDF /* CoreGraphics.framework */; }; 36 | 3288E1D7289A83740008ABDF /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3288E1B3289A82F20008ABDF /* CoreGraphics.framework */; }; 37 | 3288E1D9289A83EA0008ABDF /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3288E1D8289A83EA0008ABDF /* CoreGraphics.framework */; }; 38 | /* End PBXBuildFile section */ 39 | 40 | /* Begin PBXFileReference section */ 41 | 3288E136289A79A00008ABDF /* SDWebImageSVGNativeCoder.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = SDWebImageSVGNativeCoder.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 42 | 3288E152289A7ADA0008ABDF /* SDWebImageSVGNativeCoder.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = SDWebImageSVGNativeCoder.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 43 | 3288E15E289A7AE20008ABDF /* SDWebImageSVGNativeCoder.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = SDWebImageSVGNativeCoder.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 44 | 3288E16A289A7AF00008ABDF /* SDWebImageSVGNativeCoder.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = SDWebImageSVGNativeCoder.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 45 | 3288E189289A7D180008ABDF /* SDWebImageSVGNativeCoder.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDWebImageSVGNativeCoder.h; sourceTree = ""; }; 46 | 3288E18B289A7D180008ABDF /* SDImageSVGNativeCoder.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = SDImageSVGNativeCoder.mm; sourceTree = ""; }; 47 | 3288E18C289A7D180008ABDF /* SDImageSVGNativeCoder.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDImageSVGNativeCoder.h; sourceTree = ""; }; 48 | 3288E1A4289A7D3A0008ABDF /* SDWebImage.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SDWebImage.framework; path = Carthage/Build/iOS/SDWebImage.framework; sourceTree = ""; }; 49 | 3288E1A8289A7D470008ABDF /* svgnative.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = svgnative.framework; path = Carthage/Build/iOS/svgnative.framework; sourceTree = ""; }; 50 | 3288E1B0289A80F30008ABDF /* boost.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = boost.framework; path = Carthage/Build/iOS/boost.framework; sourceTree = ""; }; 51 | 3288E1B3289A82F20008ABDF /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; 52 | 3288E1B5289A83390008ABDF /* SDWebImage.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SDWebImage.framework; path = Carthage/Build/Mac/SDWebImage.framework; sourceTree = ""; }; 53 | 3288E1B6289A83390008ABDF /* svgnative.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = svgnative.framework; path = Carthage/Build/Mac/svgnative.framework; sourceTree = ""; }; 54 | 3288E1B7289A83390008ABDF /* boost.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = boost.framework; path = Carthage/Build/Mac/boost.framework; sourceTree = ""; }; 55 | 3288E1BF289A83570008ABDF /* svgnative.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = svgnative.framework; path = Carthage/Build/tvOS/svgnative.framework; sourceTree = ""; }; 56 | 3288E1C0289A83570008ABDF /* SDWebImage.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SDWebImage.framework; path = Carthage/Build/tvOS/SDWebImage.framework; sourceTree = ""; }; 57 | 3288E1C1289A83570008ABDF /* boost.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = boost.framework; path = Carthage/Build/tvOS/boost.framework; sourceTree = ""; }; 58 | 3288E1C9289A83650008ABDF /* boost.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = boost.framework; path = Carthage/Build/watchOS/boost.framework; sourceTree = ""; }; 59 | 3288E1CA289A83650008ABDF /* SDWebImage.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SDWebImage.framework; path = Carthage/Build/watchOS/SDWebImage.framework; sourceTree = ""; }; 60 | 3288E1CB289A83650008ABDF /* svgnative.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = svgnative.framework; path = Carthage/Build/watchOS/svgnative.framework; sourceTree = ""; }; 61 | 3288E1D5289A836F0008ABDF /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS15.4.sdk/System/Library/Frameworks/CoreGraphics.framework; sourceTree = DEVELOPER_DIR; }; 62 | 3288E1D8289A83EA0008ABDF /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = Platforms/WatchOS.platform/Developer/SDKs/WatchOS8.5.sdk/System/Library/Frameworks/CoreGraphics.framework; sourceTree = DEVELOPER_DIR; }; 63 | /* End PBXFileReference section */ 64 | 65 | /* Begin PBXFrameworksBuildPhase section */ 66 | 3288E133289A79A00008ABDF /* Frameworks */ = { 67 | isa = PBXFrameworksBuildPhase; 68 | buildActionMask = 2147483647; 69 | files = ( 70 | 3288E1D7289A83740008ABDF /* CoreGraphics.framework in Frameworks */, 71 | 3288E1BA289A83390008ABDF /* svgnative.framework in Frameworks */, 72 | 3288E1BC289A83390008ABDF /* boost.framework in Frameworks */, 73 | 3288E1B8289A83390008ABDF /* SDWebImage.framework in Frameworks */, 74 | ); 75 | runOnlyForDeploymentPostprocessing = 0; 76 | }; 77 | 3288E14F289A7ADA0008ABDF /* Frameworks */ = { 78 | isa = PBXFrameworksBuildPhase; 79 | buildActionMask = 2147483647; 80 | files = ( 81 | 3288E1B4289A82F20008ABDF /* CoreGraphics.framework in Frameworks */, 82 | 3288E1A9289A7D470008ABDF /* svgnative.framework in Frameworks */, 83 | 3288E1B1289A80F30008ABDF /* boost.framework in Frameworks */, 84 | 3288E1A5289A7D3A0008ABDF /* SDWebImage.framework in Frameworks */, 85 | ); 86 | runOnlyForDeploymentPostprocessing = 0; 87 | }; 88 | 3288E15B289A7AE20008ABDF /* Frameworks */ = { 89 | isa = PBXFrameworksBuildPhase; 90 | buildActionMask = 2147483647; 91 | files = ( 92 | 3288E1D6289A836F0008ABDF /* CoreGraphics.framework in Frameworks */, 93 | 3288E1C4289A83570008ABDF /* SDWebImage.framework in Frameworks */, 94 | 3288E1C6289A83570008ABDF /* boost.framework in Frameworks */, 95 | 3288E1C2289A83570008ABDF /* svgnative.framework in Frameworks */, 96 | ); 97 | runOnlyForDeploymentPostprocessing = 0; 98 | }; 99 | 3288E167289A7AF00008ABDF /* Frameworks */ = { 100 | isa = PBXFrameworksBuildPhase; 101 | buildActionMask = 2147483647; 102 | files = ( 103 | 3288E1D9289A83EA0008ABDF /* CoreGraphics.framework in Frameworks */, 104 | 3288E1CE289A83650008ABDF /* SDWebImage.framework in Frameworks */, 105 | 3288E1CC289A83650008ABDF /* boost.framework in Frameworks */, 106 | 3288E1D0289A83650008ABDF /* svgnative.framework in Frameworks */, 107 | ); 108 | runOnlyForDeploymentPostprocessing = 0; 109 | }; 110 | /* End PBXFrameworksBuildPhase section */ 111 | 112 | /* Begin PBXGroup section */ 113 | 3288E12C289A79A00008ABDF = { 114 | isa = PBXGroup; 115 | children = ( 116 | 3288E187289A7D180008ABDF /* SDWebImageSVGNativeCoder */, 117 | 3288E137289A79A00008ABDF /* Products */, 118 | 3288E1A3289A7D3A0008ABDF /* Frameworks */, 119 | ); 120 | sourceTree = ""; 121 | }; 122 | 3288E137289A79A00008ABDF /* Products */ = { 123 | isa = PBXGroup; 124 | children = ( 125 | 3288E136289A79A00008ABDF /* SDWebImageSVGNativeCoder.framework */, 126 | 3288E152289A7ADA0008ABDF /* SDWebImageSVGNativeCoder.framework */, 127 | 3288E15E289A7AE20008ABDF /* SDWebImageSVGNativeCoder.framework */, 128 | 3288E16A289A7AF00008ABDF /* SDWebImageSVGNativeCoder.framework */, 129 | ); 130 | name = Products; 131 | sourceTree = ""; 132 | }; 133 | 3288E187289A7D180008ABDF /* SDWebImageSVGNativeCoder */ = { 134 | isa = PBXGroup; 135 | children = ( 136 | 3288E188289A7D180008ABDF /* Classes */, 137 | ); 138 | path = SDWebImageSVGNativeCoder; 139 | sourceTree = ""; 140 | }; 141 | 3288E188289A7D180008ABDF /* Classes */ = { 142 | isa = PBXGroup; 143 | children = ( 144 | 3288E189289A7D180008ABDF /* SDWebImageSVGNativeCoder.h */, 145 | 3288E18B289A7D180008ABDF /* SDImageSVGNativeCoder.mm */, 146 | 3288E18C289A7D180008ABDF /* SDImageSVGNativeCoder.h */, 147 | ); 148 | path = Classes; 149 | sourceTree = ""; 150 | }; 151 | 3288E1A3289A7D3A0008ABDF /* Frameworks */ = { 152 | isa = PBXGroup; 153 | children = ( 154 | 3288E1D5289A836F0008ABDF /* CoreGraphics.framework */, 155 | 3288E1D8289A83EA0008ABDF /* CoreGraphics.framework */, 156 | 3288E1B7289A83390008ABDF /* boost.framework */, 157 | 3288E1C1289A83570008ABDF /* boost.framework */, 158 | 3288E1B5289A83390008ABDF /* SDWebImage.framework */, 159 | 3288E1C0289A83570008ABDF /* SDWebImage.framework */, 160 | 3288E1B6289A83390008ABDF /* svgnative.framework */, 161 | 3288E1BF289A83570008ABDF /* svgnative.framework */, 162 | 3288E1C9289A83650008ABDF /* boost.framework */, 163 | 3288E1CA289A83650008ABDF /* SDWebImage.framework */, 164 | 3288E1CB289A83650008ABDF /* svgnative.framework */, 165 | 3288E1B3289A82F20008ABDF /* CoreGraphics.framework */, 166 | 3288E1B0289A80F30008ABDF /* boost.framework */, 167 | 3288E1A8289A7D470008ABDF /* svgnative.framework */, 168 | 3288E1A4289A7D3A0008ABDF /* SDWebImage.framework */, 169 | ); 170 | name = Frameworks; 171 | sourceTree = ""; 172 | }; 173 | /* End PBXGroup section */ 174 | 175 | /* Begin PBXHeadersBuildPhase section */ 176 | 3288E131289A79A00008ABDF /* Headers */ = { 177 | isa = PBXHeadersBuildPhase; 178 | buildActionMask = 2147483647; 179 | files = ( 180 | 3288E18F289A7D180008ABDF /* SDWebImageSVGNativeCoder.h in Headers */, 181 | 3288E19B289A7D180008ABDF /* SDImageSVGNativeCoder.h in Headers */, 182 | ); 183 | runOnlyForDeploymentPostprocessing = 0; 184 | }; 185 | 3288E14D289A7ADA0008ABDF /* Headers */ = { 186 | isa = PBXHeadersBuildPhase; 187 | buildActionMask = 2147483647; 188 | files = ( 189 | 3288E190289A7D180008ABDF /* SDWebImageSVGNativeCoder.h in Headers */, 190 | 3288E19C289A7D180008ABDF /* SDImageSVGNativeCoder.h in Headers */, 191 | ); 192 | runOnlyForDeploymentPostprocessing = 0; 193 | }; 194 | 3288E159289A7AE20008ABDF /* Headers */ = { 195 | isa = PBXHeadersBuildPhase; 196 | buildActionMask = 2147483647; 197 | files = ( 198 | 3288E191289A7D180008ABDF /* SDWebImageSVGNativeCoder.h in Headers */, 199 | 3288E19D289A7D180008ABDF /* SDImageSVGNativeCoder.h in Headers */, 200 | ); 201 | runOnlyForDeploymentPostprocessing = 0; 202 | }; 203 | 3288E165289A7AF00008ABDF /* Headers */ = { 204 | isa = PBXHeadersBuildPhase; 205 | buildActionMask = 2147483647; 206 | files = ( 207 | 3288E192289A7D180008ABDF /* SDWebImageSVGNativeCoder.h in Headers */, 208 | 3288E19E289A7D180008ABDF /* SDImageSVGNativeCoder.h in Headers */, 209 | ); 210 | runOnlyForDeploymentPostprocessing = 0; 211 | }; 212 | /* End PBXHeadersBuildPhase section */ 213 | 214 | /* Begin PBXNativeTarget section */ 215 | 3288E135289A79A00008ABDF /* SDWebImageSVGNativeCoder macOS */ = { 216 | isa = PBXNativeTarget; 217 | buildConfigurationList = 3288E13D289A79A00008ABDF /* Build configuration list for PBXNativeTarget "SDWebImageSVGNativeCoder macOS" */; 218 | buildPhases = ( 219 | 3288E131289A79A00008ABDF /* Headers */, 220 | 3288E132289A79A00008ABDF /* Sources */, 221 | 3288E133289A79A00008ABDF /* Frameworks */, 222 | 3288E134289A79A00008ABDF /* Resources */, 223 | ); 224 | buildRules = ( 225 | ); 226 | dependencies = ( 227 | ); 228 | name = "SDWebImageSVGNativeCoder macOS"; 229 | productName = SDWebImageSVGNativeCoder; 230 | productReference = 3288E136289A79A00008ABDF /* SDWebImageSVGNativeCoder.framework */; 231 | productType = "com.apple.product-type.framework"; 232 | }; 233 | 3288E151289A7ADA0008ABDF /* SDWebImageSVGNativeCoder iOS */ = { 234 | isa = PBXNativeTarget; 235 | buildConfigurationList = 3288E156289A7ADA0008ABDF /* Build configuration list for PBXNativeTarget "SDWebImageSVGNativeCoder iOS" */; 236 | buildPhases = ( 237 | 3288E14D289A7ADA0008ABDF /* Headers */, 238 | 3288E14E289A7ADA0008ABDF /* Sources */, 239 | 3288E14F289A7ADA0008ABDF /* Frameworks */, 240 | 3288E150289A7ADA0008ABDF /* Resources */, 241 | ); 242 | buildRules = ( 243 | ); 244 | dependencies = ( 245 | ); 246 | name = "SDWebImageSVGNativeCoder iOS"; 247 | productName = "SDWebImageSVGNativeCoder iOS"; 248 | productReference = 3288E152289A7ADA0008ABDF /* SDWebImageSVGNativeCoder.framework */; 249 | productType = "com.apple.product-type.framework"; 250 | }; 251 | 3288E15D289A7AE20008ABDF /* SDWebImageSVGNativeCoder tvOS */ = { 252 | isa = PBXNativeTarget; 253 | buildConfigurationList = 3288E162289A7AE20008ABDF /* Build configuration list for PBXNativeTarget "SDWebImageSVGNativeCoder tvOS" */; 254 | buildPhases = ( 255 | 3288E159289A7AE20008ABDF /* Headers */, 256 | 3288E15A289A7AE20008ABDF /* Sources */, 257 | 3288E15B289A7AE20008ABDF /* Frameworks */, 258 | 3288E15C289A7AE20008ABDF /* Resources */, 259 | ); 260 | buildRules = ( 261 | ); 262 | dependencies = ( 263 | ); 264 | name = "SDWebImageSVGNativeCoder tvOS"; 265 | productName = "SDWebImageSVGNativeCoder tvOS"; 266 | productReference = 3288E15E289A7AE20008ABDF /* SDWebImageSVGNativeCoder.framework */; 267 | productType = "com.apple.product-type.framework"; 268 | }; 269 | 3288E169289A7AF00008ABDF /* SDWebImageSVGNativeCoder watchOS */ = { 270 | isa = PBXNativeTarget; 271 | buildConfigurationList = 3288E16E289A7AF00008ABDF /* Build configuration list for PBXNativeTarget "SDWebImageSVGNativeCoder watchOS" */; 272 | buildPhases = ( 273 | 3288E165289A7AF00008ABDF /* Headers */, 274 | 3288E166289A7AF00008ABDF /* Sources */, 275 | 3288E167289A7AF00008ABDF /* Frameworks */, 276 | 3288E168289A7AF00008ABDF /* Resources */, 277 | ); 278 | buildRules = ( 279 | ); 280 | dependencies = ( 281 | ); 282 | name = "SDWebImageSVGNativeCoder watchOS"; 283 | productName = "SDWebImageSVGNativeCoder watchOS"; 284 | productReference = 3288E16A289A7AF00008ABDF /* SDWebImageSVGNativeCoder.framework */; 285 | productType = "com.apple.product-type.framework"; 286 | }; 287 | /* End PBXNativeTarget section */ 288 | 289 | /* Begin PBXProject section */ 290 | 3288E12D289A79A00008ABDF /* Project object */ = { 291 | isa = PBXProject; 292 | attributes = { 293 | BuildIndependentTargetsInParallel = 1; 294 | LastUpgradeCheck = 1340; 295 | TargetAttributes = { 296 | 3288E135289A79A00008ABDF = { 297 | CreatedOnToolsVersion = 13.4.1; 298 | }; 299 | 3288E151289A7ADA0008ABDF = { 300 | CreatedOnToolsVersion = 13.4.1; 301 | }; 302 | 3288E15D289A7AE20008ABDF = { 303 | CreatedOnToolsVersion = 13.4.1; 304 | }; 305 | 3288E169289A7AF00008ABDF = { 306 | CreatedOnToolsVersion = 13.4.1; 307 | }; 308 | }; 309 | }; 310 | buildConfigurationList = 3288E130289A79A00008ABDF /* Build configuration list for PBXProject "SDWebImageSVGNativeCoder" */; 311 | compatibilityVersion = "Xcode 13.0"; 312 | developmentRegion = en; 313 | hasScannedForEncodings = 0; 314 | knownRegions = ( 315 | en, 316 | Base, 317 | ); 318 | mainGroup = 3288E12C289A79A00008ABDF; 319 | productRefGroup = 3288E137289A79A00008ABDF /* Products */; 320 | projectDirPath = ""; 321 | projectRoot = ""; 322 | targets = ( 323 | 3288E135289A79A00008ABDF /* SDWebImageSVGNativeCoder macOS */, 324 | 3288E151289A7ADA0008ABDF /* SDWebImageSVGNativeCoder iOS */, 325 | 3288E15D289A7AE20008ABDF /* SDWebImageSVGNativeCoder tvOS */, 326 | 3288E169289A7AF00008ABDF /* SDWebImageSVGNativeCoder watchOS */, 327 | ); 328 | }; 329 | /* End PBXProject section */ 330 | 331 | /* Begin PBXResourcesBuildPhase section */ 332 | 3288E134289A79A00008ABDF /* Resources */ = { 333 | isa = PBXResourcesBuildPhase; 334 | buildActionMask = 2147483647; 335 | files = ( 336 | ); 337 | runOnlyForDeploymentPostprocessing = 0; 338 | }; 339 | 3288E150289A7ADA0008ABDF /* Resources */ = { 340 | isa = PBXResourcesBuildPhase; 341 | buildActionMask = 2147483647; 342 | files = ( 343 | ); 344 | runOnlyForDeploymentPostprocessing = 0; 345 | }; 346 | 3288E15C289A7AE20008ABDF /* Resources */ = { 347 | isa = PBXResourcesBuildPhase; 348 | buildActionMask = 2147483647; 349 | files = ( 350 | ); 351 | runOnlyForDeploymentPostprocessing = 0; 352 | }; 353 | 3288E168289A7AF00008ABDF /* Resources */ = { 354 | isa = PBXResourcesBuildPhase; 355 | buildActionMask = 2147483647; 356 | files = ( 357 | ); 358 | runOnlyForDeploymentPostprocessing = 0; 359 | }; 360 | /* End PBXResourcesBuildPhase section */ 361 | 362 | /* Begin PBXSourcesBuildPhase section */ 363 | 3288E132289A79A00008ABDF /* Sources */ = { 364 | isa = PBXSourcesBuildPhase; 365 | buildActionMask = 2147483647; 366 | files = ( 367 | 3288E197289A7D180008ABDF /* SDImageSVGNativeCoder.mm in Sources */, 368 | ); 369 | runOnlyForDeploymentPostprocessing = 0; 370 | }; 371 | 3288E14E289A7ADA0008ABDF /* Sources */ = { 372 | isa = PBXSourcesBuildPhase; 373 | buildActionMask = 2147483647; 374 | files = ( 375 | 3288E198289A7D180008ABDF /* SDImageSVGNativeCoder.mm in Sources */, 376 | ); 377 | runOnlyForDeploymentPostprocessing = 0; 378 | }; 379 | 3288E15A289A7AE20008ABDF /* Sources */ = { 380 | isa = PBXSourcesBuildPhase; 381 | buildActionMask = 2147483647; 382 | files = ( 383 | 3288E199289A7D180008ABDF /* SDImageSVGNativeCoder.mm in Sources */, 384 | ); 385 | runOnlyForDeploymentPostprocessing = 0; 386 | }; 387 | 3288E166289A7AF00008ABDF /* Sources */ = { 388 | isa = PBXSourcesBuildPhase; 389 | buildActionMask = 2147483647; 390 | files = ( 391 | 3288E19A289A7D180008ABDF /* SDImageSVGNativeCoder.mm in Sources */, 392 | ); 393 | runOnlyForDeploymentPostprocessing = 0; 394 | }; 395 | /* End PBXSourcesBuildPhase section */ 396 | 397 | /* Begin XCBuildConfiguration section */ 398 | 3288E13B289A79A00008ABDF /* Debug */ = { 399 | isa = XCBuildConfiguration; 400 | buildSettings = { 401 | ALWAYS_SEARCH_USER_PATHS = NO; 402 | CLANG_ANALYZER_NONNULL = YES; 403 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 404 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++17"; 405 | CLANG_ENABLE_MODULES = YES; 406 | CLANG_ENABLE_OBJC_ARC = YES; 407 | CLANG_ENABLE_OBJC_WEAK = YES; 408 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 409 | CLANG_WARN_BOOL_CONVERSION = YES; 410 | CLANG_WARN_COMMA = YES; 411 | CLANG_WARN_CONSTANT_CONVERSION = YES; 412 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 413 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 414 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 415 | CLANG_WARN_EMPTY_BODY = YES; 416 | CLANG_WARN_ENUM_CONVERSION = YES; 417 | CLANG_WARN_INFINITE_RECURSION = YES; 418 | CLANG_WARN_INT_CONVERSION = YES; 419 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 420 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 421 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 422 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 423 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 424 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 425 | CLANG_WARN_STRICT_PROTOTYPES = YES; 426 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 427 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 428 | CLANG_WARN_UNREACHABLE_CODE = YES; 429 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 430 | COPY_PHASE_STRIP = NO; 431 | CURRENT_PROJECT_VERSION = 1; 432 | DEBUG_INFORMATION_FORMAT = dwarf; 433 | ENABLE_STRICT_OBJC_MSGSEND = YES; 434 | ENABLE_TESTABILITY = YES; 435 | GCC_C_LANGUAGE_STANDARD = gnu11; 436 | GCC_DYNAMIC_NO_PIC = NO; 437 | GCC_NO_COMMON_BLOCKS = YES; 438 | GCC_OPTIMIZATION_LEVEL = 0; 439 | GCC_PREPROCESSOR_DEFINITIONS = ( 440 | "DEBUG=1", 441 | "$(inherited)", 442 | ); 443 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 444 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 445 | GCC_WARN_UNDECLARED_SELECTOR = YES; 446 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 447 | GCC_WARN_UNUSED_FUNCTION = YES; 448 | GCC_WARN_UNUSED_VARIABLE = YES; 449 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 450 | MACOSX_DEPLOYMENT_TARGET = 10.11; 451 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 452 | MTL_FAST_MATH = YES; 453 | ONLY_ACTIVE_ARCH = YES; 454 | SDKROOT = macosx; 455 | TVOS_DEPLOYMENT_TARGET = 9.0; 456 | VERSIONING_SYSTEM = "apple-generic"; 457 | VERSION_INFO_PREFIX = ""; 458 | WATCHOS_DEPLOYMENT_TARGET = 2.0; 459 | }; 460 | name = Debug; 461 | }; 462 | 3288E13C289A79A00008ABDF /* Release */ = { 463 | isa = XCBuildConfiguration; 464 | buildSettings = { 465 | ALWAYS_SEARCH_USER_PATHS = NO; 466 | CLANG_ANALYZER_NONNULL = YES; 467 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 468 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++17"; 469 | CLANG_ENABLE_MODULES = YES; 470 | CLANG_ENABLE_OBJC_ARC = YES; 471 | CLANG_ENABLE_OBJC_WEAK = YES; 472 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 473 | CLANG_WARN_BOOL_CONVERSION = YES; 474 | CLANG_WARN_COMMA = YES; 475 | CLANG_WARN_CONSTANT_CONVERSION = YES; 476 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 477 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 478 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 479 | CLANG_WARN_EMPTY_BODY = YES; 480 | CLANG_WARN_ENUM_CONVERSION = YES; 481 | CLANG_WARN_INFINITE_RECURSION = YES; 482 | CLANG_WARN_INT_CONVERSION = YES; 483 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 484 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 485 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 486 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 487 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 488 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 489 | CLANG_WARN_STRICT_PROTOTYPES = YES; 490 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 491 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 492 | CLANG_WARN_UNREACHABLE_CODE = YES; 493 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 494 | COPY_PHASE_STRIP = NO; 495 | CURRENT_PROJECT_VERSION = 1; 496 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 497 | ENABLE_NS_ASSERTIONS = NO; 498 | ENABLE_STRICT_OBJC_MSGSEND = YES; 499 | GCC_C_LANGUAGE_STANDARD = gnu11; 500 | GCC_NO_COMMON_BLOCKS = YES; 501 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 502 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 503 | GCC_WARN_UNDECLARED_SELECTOR = YES; 504 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 505 | GCC_WARN_UNUSED_FUNCTION = YES; 506 | GCC_WARN_UNUSED_VARIABLE = YES; 507 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 508 | MACOSX_DEPLOYMENT_TARGET = 10.11; 509 | MTL_ENABLE_DEBUG_INFO = NO; 510 | MTL_FAST_MATH = YES; 511 | SDKROOT = macosx; 512 | TVOS_DEPLOYMENT_TARGET = 9.0; 513 | VERSIONING_SYSTEM = "apple-generic"; 514 | VERSION_INFO_PREFIX = ""; 515 | WATCHOS_DEPLOYMENT_TARGET = 2.0; 516 | }; 517 | name = Release; 518 | }; 519 | 3288E13E289A79A00008ABDF /* Debug */ = { 520 | isa = XCBuildConfiguration; 521 | buildSettings = { 522 | CODE_SIGN_STYLE = Automatic; 523 | COMBINE_HIDPI_IMAGES = YES; 524 | CURRENT_PROJECT_VERSION = 1; 525 | DEFINES_MODULE = YES; 526 | DYLIB_COMPATIBILITY_VERSION = 1; 527 | DYLIB_CURRENT_VERSION = 1; 528 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 529 | FRAMEWORK_SEARCH_PATHS = ( 530 | "$(inherited)", 531 | "$(PROJECT_DIR)/Carthage/Build/Mac", 532 | ); 533 | GENERATE_INFOPLIST_FILE = YES; 534 | INFOPLIST_KEY_NSHumanReadableCopyright = ""; 535 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 536 | LD_RUNPATH_SEARCH_PATHS = ( 537 | "$(inherited)", 538 | "@executable_path/../Frameworks", 539 | "@loader_path/Frameworks", 540 | ); 541 | MARKETING_VERSION = 1.0; 542 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.SDWebImageSVGNativeCoder; 543 | PRODUCT_NAME = SDWebImageSVGNativeCoder; 544 | SKIP_INSTALL = YES; 545 | SWIFT_EMIT_LOC_STRINGS = YES; 546 | }; 547 | name = Debug; 548 | }; 549 | 3288E13F289A79A00008ABDF /* Release */ = { 550 | isa = XCBuildConfiguration; 551 | buildSettings = { 552 | CODE_SIGN_STYLE = Automatic; 553 | COMBINE_HIDPI_IMAGES = YES; 554 | CURRENT_PROJECT_VERSION = 1; 555 | DEFINES_MODULE = YES; 556 | DYLIB_COMPATIBILITY_VERSION = 1; 557 | DYLIB_CURRENT_VERSION = 1; 558 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 559 | FRAMEWORK_SEARCH_PATHS = ( 560 | "$(inherited)", 561 | "$(PROJECT_DIR)/Carthage/Build/Mac", 562 | ); 563 | GENERATE_INFOPLIST_FILE = YES; 564 | INFOPLIST_KEY_NSHumanReadableCopyright = ""; 565 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 566 | LD_RUNPATH_SEARCH_PATHS = ( 567 | "$(inherited)", 568 | "@executable_path/../Frameworks", 569 | "@loader_path/Frameworks", 570 | ); 571 | MARKETING_VERSION = 1.0; 572 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.SDWebImageSVGNativeCoder; 573 | PRODUCT_NAME = SDWebImageSVGNativeCoder; 574 | SKIP_INSTALL = YES; 575 | SWIFT_EMIT_LOC_STRINGS = YES; 576 | }; 577 | name = Release; 578 | }; 579 | 3288E157289A7ADA0008ABDF /* Debug */ = { 580 | isa = XCBuildConfiguration; 581 | buildSettings = { 582 | CODE_SIGN_STYLE = Automatic; 583 | CURRENT_PROJECT_VERSION = 1; 584 | DEFINES_MODULE = YES; 585 | DYLIB_COMPATIBILITY_VERSION = 1; 586 | DYLIB_CURRENT_VERSION = 1; 587 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 588 | FRAMEWORK_SEARCH_PATHS = ( 589 | "$(inherited)", 590 | "$(PROJECT_DIR)/Carthage/Build/iOS", 591 | ); 592 | GENERATE_INFOPLIST_FILE = YES; 593 | INFOPLIST_KEY_NSHumanReadableCopyright = ""; 594 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 595 | LD_RUNPATH_SEARCH_PATHS = ( 596 | "$(inherited)", 597 | "@executable_path/Frameworks", 598 | "@loader_path/Frameworks", 599 | ); 600 | MARKETING_VERSION = 1.0; 601 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.SDWebImageSVGNativeCoder-iOS"; 602 | PRODUCT_NAME = SDWebImageSVGNativeCoder; 603 | SDKROOT = iphoneos; 604 | SKIP_INSTALL = YES; 605 | SWIFT_EMIT_LOC_STRINGS = YES; 606 | TARGETED_DEVICE_FAMILY = "1,2"; 607 | }; 608 | name = Debug; 609 | }; 610 | 3288E158289A7ADA0008ABDF /* Release */ = { 611 | isa = XCBuildConfiguration; 612 | buildSettings = { 613 | CODE_SIGN_STYLE = Automatic; 614 | CURRENT_PROJECT_VERSION = 1; 615 | DEFINES_MODULE = YES; 616 | DYLIB_COMPATIBILITY_VERSION = 1; 617 | DYLIB_CURRENT_VERSION = 1; 618 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 619 | FRAMEWORK_SEARCH_PATHS = ( 620 | "$(inherited)", 621 | "$(PROJECT_DIR)/Carthage/Build/iOS", 622 | ); 623 | GENERATE_INFOPLIST_FILE = YES; 624 | INFOPLIST_KEY_NSHumanReadableCopyright = ""; 625 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 626 | LD_RUNPATH_SEARCH_PATHS = ( 627 | "$(inherited)", 628 | "@executable_path/Frameworks", 629 | "@loader_path/Frameworks", 630 | ); 631 | MARKETING_VERSION = 1.0; 632 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.SDWebImageSVGNativeCoder-iOS"; 633 | PRODUCT_NAME = SDWebImageSVGNativeCoder; 634 | SDKROOT = iphoneos; 635 | SKIP_INSTALL = YES; 636 | SWIFT_EMIT_LOC_STRINGS = YES; 637 | TARGETED_DEVICE_FAMILY = "1,2"; 638 | VALIDATE_PRODUCT = YES; 639 | }; 640 | name = Release; 641 | }; 642 | 3288E163289A7AE20008ABDF /* Debug */ = { 643 | isa = XCBuildConfiguration; 644 | buildSettings = { 645 | CODE_SIGN_STYLE = Automatic; 646 | CURRENT_PROJECT_VERSION = 1; 647 | DEFINES_MODULE = YES; 648 | DYLIB_COMPATIBILITY_VERSION = 1; 649 | DYLIB_CURRENT_VERSION = 1; 650 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 651 | FRAMEWORK_SEARCH_PATHS = ( 652 | "$(inherited)", 653 | "$(PROJECT_DIR)/Carthage/Build/tvOS", 654 | ); 655 | GENERATE_INFOPLIST_FILE = YES; 656 | INFOPLIST_KEY_NSHumanReadableCopyright = ""; 657 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 658 | LD_RUNPATH_SEARCH_PATHS = ( 659 | "$(inherited)", 660 | "@executable_path/Frameworks", 661 | "@loader_path/Frameworks", 662 | ); 663 | MARKETING_VERSION = 1.0; 664 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.SDWebImageSVGNativeCoder-tvOS"; 665 | PRODUCT_NAME = SDWebImageSVGNativeCoder; 666 | SDKROOT = appletvos; 667 | SKIP_INSTALL = YES; 668 | SWIFT_EMIT_LOC_STRINGS = YES; 669 | TARGETED_DEVICE_FAMILY = 3; 670 | }; 671 | name = Debug; 672 | }; 673 | 3288E164289A7AE20008ABDF /* Release */ = { 674 | isa = XCBuildConfiguration; 675 | buildSettings = { 676 | CODE_SIGN_STYLE = Automatic; 677 | CURRENT_PROJECT_VERSION = 1; 678 | DEFINES_MODULE = YES; 679 | DYLIB_COMPATIBILITY_VERSION = 1; 680 | DYLIB_CURRENT_VERSION = 1; 681 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 682 | FRAMEWORK_SEARCH_PATHS = ( 683 | "$(inherited)", 684 | "$(PROJECT_DIR)/Carthage/Build/tvOS", 685 | ); 686 | GENERATE_INFOPLIST_FILE = YES; 687 | INFOPLIST_KEY_NSHumanReadableCopyright = ""; 688 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 689 | LD_RUNPATH_SEARCH_PATHS = ( 690 | "$(inherited)", 691 | "@executable_path/Frameworks", 692 | "@loader_path/Frameworks", 693 | ); 694 | MARKETING_VERSION = 1.0; 695 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.SDWebImageSVGNativeCoder-tvOS"; 696 | PRODUCT_NAME = SDWebImageSVGNativeCoder; 697 | SDKROOT = appletvos; 698 | SKIP_INSTALL = YES; 699 | SWIFT_EMIT_LOC_STRINGS = YES; 700 | TARGETED_DEVICE_FAMILY = 3; 701 | VALIDATE_PRODUCT = YES; 702 | }; 703 | name = Release; 704 | }; 705 | 3288E16F289A7AF00008ABDF /* Debug */ = { 706 | isa = XCBuildConfiguration; 707 | buildSettings = { 708 | APPLICATION_EXTENSION_API_ONLY = YES; 709 | CODE_SIGN_STYLE = Automatic; 710 | CURRENT_PROJECT_VERSION = 1; 711 | DEFINES_MODULE = YES; 712 | DYLIB_COMPATIBILITY_VERSION = 1; 713 | DYLIB_CURRENT_VERSION = 1; 714 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 715 | FRAMEWORK_SEARCH_PATHS = ( 716 | "$(inherited)", 717 | "$(PROJECT_DIR)/Carthage/Build/watchOS", 718 | ); 719 | GENERATE_INFOPLIST_FILE = YES; 720 | INFOPLIST_KEY_NSHumanReadableCopyright = ""; 721 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 722 | LD_RUNPATH_SEARCH_PATHS = ( 723 | "$(inherited)", 724 | "@executable_path/Frameworks", 725 | "@loader_path/Frameworks", 726 | ); 727 | MARKETING_VERSION = 1.0; 728 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.SDWebImageSVGNativeCoder-watchOS"; 729 | PRODUCT_NAME = SDWebImageSVGNativeCoder; 730 | SDKROOT = watchos; 731 | SKIP_INSTALL = YES; 732 | SWIFT_EMIT_LOC_STRINGS = YES; 733 | TARGETED_DEVICE_FAMILY = 4; 734 | }; 735 | name = Debug; 736 | }; 737 | 3288E170289A7AF00008ABDF /* Release */ = { 738 | isa = XCBuildConfiguration; 739 | buildSettings = { 740 | APPLICATION_EXTENSION_API_ONLY = YES; 741 | CODE_SIGN_STYLE = Automatic; 742 | CURRENT_PROJECT_VERSION = 1; 743 | DEFINES_MODULE = YES; 744 | DYLIB_COMPATIBILITY_VERSION = 1; 745 | DYLIB_CURRENT_VERSION = 1; 746 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 747 | FRAMEWORK_SEARCH_PATHS = ( 748 | "$(inherited)", 749 | "$(PROJECT_DIR)/Carthage/Build/watchOS", 750 | ); 751 | GENERATE_INFOPLIST_FILE = YES; 752 | INFOPLIST_KEY_NSHumanReadableCopyright = ""; 753 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 754 | LD_RUNPATH_SEARCH_PATHS = ( 755 | "$(inherited)", 756 | "@executable_path/Frameworks", 757 | "@loader_path/Frameworks", 758 | ); 759 | MARKETING_VERSION = 1.0; 760 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.SDWebImageSVGNativeCoder-watchOS"; 761 | PRODUCT_NAME = SDWebImageSVGNativeCoder; 762 | SDKROOT = watchos; 763 | SKIP_INSTALL = YES; 764 | SWIFT_EMIT_LOC_STRINGS = YES; 765 | TARGETED_DEVICE_FAMILY = 4; 766 | VALIDATE_PRODUCT = YES; 767 | }; 768 | name = Release; 769 | }; 770 | /* End XCBuildConfiguration section */ 771 | 772 | /* Begin XCConfigurationList section */ 773 | 3288E130289A79A00008ABDF /* Build configuration list for PBXProject "SDWebImageSVGNativeCoder" */ = { 774 | isa = XCConfigurationList; 775 | buildConfigurations = ( 776 | 3288E13B289A79A00008ABDF /* Debug */, 777 | 3288E13C289A79A00008ABDF /* Release */, 778 | ); 779 | defaultConfigurationIsVisible = 0; 780 | defaultConfigurationName = Release; 781 | }; 782 | 3288E13D289A79A00008ABDF /* Build configuration list for PBXNativeTarget "SDWebImageSVGNativeCoder macOS" */ = { 783 | isa = XCConfigurationList; 784 | buildConfigurations = ( 785 | 3288E13E289A79A00008ABDF /* Debug */, 786 | 3288E13F289A79A00008ABDF /* Release */, 787 | ); 788 | defaultConfigurationIsVisible = 0; 789 | defaultConfigurationName = Release; 790 | }; 791 | 3288E156289A7ADA0008ABDF /* Build configuration list for PBXNativeTarget "SDWebImageSVGNativeCoder iOS" */ = { 792 | isa = XCConfigurationList; 793 | buildConfigurations = ( 794 | 3288E157289A7ADA0008ABDF /* Debug */, 795 | 3288E158289A7ADA0008ABDF /* Release */, 796 | ); 797 | defaultConfigurationIsVisible = 0; 798 | defaultConfigurationName = Release; 799 | }; 800 | 3288E162289A7AE20008ABDF /* Build configuration list for PBXNativeTarget "SDWebImageSVGNativeCoder tvOS" */ = { 801 | isa = XCConfigurationList; 802 | buildConfigurations = ( 803 | 3288E163289A7AE20008ABDF /* Debug */, 804 | 3288E164289A7AE20008ABDF /* Release */, 805 | ); 806 | defaultConfigurationIsVisible = 0; 807 | defaultConfigurationName = Release; 808 | }; 809 | 3288E16E289A7AF00008ABDF /* Build configuration list for PBXNativeTarget "SDWebImageSVGNativeCoder watchOS" */ = { 810 | isa = XCConfigurationList; 811 | buildConfigurations = ( 812 | 3288E16F289A7AF00008ABDF /* Debug */, 813 | 3288E170289A7AF00008ABDF /* Release */, 814 | ); 815 | defaultConfigurationIsVisible = 0; 816 | defaultConfigurationName = Release; 817 | }; 818 | /* End XCConfigurationList section */ 819 | }; 820 | rootObject = 3288E12D289A79A00008ABDF /* Project object */; 821 | } 822 | -------------------------------------------------------------------------------- /SDWebImageSVGNativeCoder.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /SDWebImageSVGNativeCoder/Classes/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SDWebImage/SDWebImageSVGNativeCoder/09a6199bbc0899c90382e734bbe07850eae2aa83/SDWebImageSVGNativeCoder/Classes/.gitkeep -------------------------------------------------------------------------------- /SDWebImageSVGNativeCoder/Classes/SDImageSVGNativeCoder.h: -------------------------------------------------------------------------------- 1 | // 2 | // SDImageSVGNativeCoder.h 3 | // SDWebImageSVGNativeCoder 4 | // 5 | // Created by dreampiggy on 08/01/2022. 6 | // Copyright (c) 2022 dreampiggy. All rights reserved. 7 | // 8 | 9 | #if __has_include() 10 | #import 11 | #else 12 | @import SDWebImage; 13 | #endif 14 | 15 | NS_ASSUME_NONNULL_BEGIN 16 | 17 | /** 18 | SDImageSVGNativeCoder is a SVG Native image coder. 19 | SVG Native is a profile of SVG 1.1 designed for interoperability with native apps and system libraries that execute outside the Web environment. see more: https://svgwg.org/specs/svg-native/ 20 | */ 21 | @interface SDImageSVGNativeCoder : NSObject 22 | 23 | @property (nonatomic, class, readonly) SDImageSVGNativeCoder *sharedCoder; 24 | 25 | @end 26 | 27 | NS_ASSUME_NONNULL_END 28 | -------------------------------------------------------------------------------- /SDWebImageSVGNativeCoder/Classes/SDImageSVGNativeCoder.mm: -------------------------------------------------------------------------------- 1 | // 2 | // SDImageSVGNativeCoder.mm 3 | // SDWebImageSVGNativeCoder 4 | // 5 | // Created by dreampiggy on 08/01/2022. 6 | // Copyright (c) 2022 dreampiggy. All rights reserved. 7 | // 8 | 9 | #import "SDImageSVGNativeCoder.h" 10 | #import 11 | #import 12 | #if __has_include() 13 | #include 14 | #else 15 | #include 16 | #endif 17 | 18 | #define kSVGTagEnd @"" 19 | 20 | @implementation SDImageSVGNativeCoder 21 | 22 | + (SDImageSVGNativeCoder *)sharedCoder { 23 | static dispatch_once_t onceToken; 24 | static SDImageSVGNativeCoder *coder; 25 | dispatch_once(&onceToken, ^{ 26 | coder = [[SDImageSVGNativeCoder alloc] init]; 27 | }); 28 | return coder; 29 | } 30 | 31 | #pragma mark - Decode 32 | 33 | - (BOOL)canDecodeFromData:(NSData *)data { 34 | return [self.class isSVGFormatForData:data]; 35 | } 36 | 37 | - (nullable UIImage *)decodedImageWithData:(nullable NSData *)data options:(nullable SDImageCoderOptions *)options { 38 | if (!data) { 39 | return nil; 40 | } 41 | NSString *svgString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding]; 42 | if (!svgString) { 43 | return nil; 44 | } 45 | 46 | // Parse args 47 | CGSize imageSize = CGSizeZero; 48 | BOOL preserveAspectRatio = YES; 49 | if (options[SDImageCoderDecodeThumbnailPixelSize]) { 50 | NSValue *sizeValue = options[SDImageCoderDecodeThumbnailPixelSize]; 51 | #if SD_MAC 52 | imageSize = sizeValue.sizeValue; 53 | #else 54 | imageSize = sizeValue.CGSizeValue; 55 | #endif 56 | } 57 | if (options[SDImageCoderDecodePreserveAspectRatio]) { 58 | preserveAspectRatio = [options[SDImageCoderDecodePreserveAspectRatio] boolValue]; 59 | } 60 | 61 | // From svg-native-viewer example/testCocoaCG, use C++ shared ptr 62 | // Create the renderer object 63 | auto renderer = std::make_shared(); 64 | 65 | // Create SVGDocument object and parse the passed SVG string. 66 | auto doc = SVGNative::SVGDocument::CreateSVGDocument([svgString UTF8String], renderer).release(); 67 | if (!doc) { 68 | return nil; 69 | } 70 | 71 | CGSize svgSize = imageSize; 72 | if (CGSizeEqualToSize(svgSize, CGSizeZero)) { 73 | // If user don't provide view port size, use the view box size 74 | svgSize = CGSizeMake(doc->Width(), doc->Height()); 75 | } 76 | 77 | // Draw on CGContext 78 | SDGraphicsBeginImageContext(svgSize); 79 | CGContextRef ctx = SDGraphicsGetCurrentContext(); 80 | 81 | renderer->SetGraphicsContext(ctx); 82 | 83 | #if SD_MAC 84 | // Core Graphics Coordinate System convert. SDWebImage use's non-flipped one 85 | // See: [NSGraphicsContext graphicsContextWithCGContext:context flipped:NO]; 86 | CGContextScaleCTM(ctx, 1, -1); 87 | CGContextTranslateCTM(ctx, 0, -svgSize.height); 88 | #endif 89 | 90 | doc->Render(svgSize.width, svgSize.height); 91 | 92 | renderer->ReleaseGraphicsContext(); 93 | UIImage *image = SDGraphicsGetImageFromCurrentImageContext(); 94 | SDGraphicsEndImageContext(); 95 | 96 | return image; 97 | } 98 | 99 | #pragma mark - Encode 100 | 101 | // No support SVG Encode 102 | - (BOOL)canEncodeToFormat:(SDImageFormat)format { 103 | return NO; 104 | } 105 | 106 | - (nullable NSData *)encodedDataWithImage:(nullable UIImage *)image format:(SDImageFormat)format options:(nullable SDImageCoderOptions *)options { 107 | return nil; 108 | } 109 | 110 | #pragma mark - Helper 111 | 112 | + (BOOL)isSVGFormatForData:(NSData *)data { 113 | if (!data) { 114 | return NO; 115 | } 116 | // Check end with SVG tag 117 | return [data rangeOfData:[kSVGTagEnd dataUsingEncoding:NSUTF8StringEncoding] options:NSDataSearchBackwards range: NSMakeRange(data.length - MIN(100, data.length), MIN(100, data.length))].location != NSNotFound; 118 | } 119 | 120 | @end 121 | -------------------------------------------------------------------------------- /SDWebImageSVGNativeCoder/Classes/SDWebImageSVGNativeCoder.h: -------------------------------------------------------------------------------- 1 | // 2 | // SDWebImageSVGNativeCoder.h 3 | // SDWebImageSVGNativeCoder 4 | // 5 | // Created by dreampiggy on 08/01/2022. 6 | // Copyright (c) 2022 dreampiggy. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | //! Project version number for SDWebImageSVGNativeCoder. 12 | FOUNDATION_EXPORT double SDWebImageSVGNativeCoderVersionNumber; 13 | 14 | //! Project version string for SDWebImageSVGNativeCoder. 15 | FOUNDATION_EXPORT const unsigned char SDWebImageSVGNativeCoderVersionString[]; 16 | 17 | // In this header, you should import all the public headers of your framework using statements like #import 18 | 19 | 20 | #import "SDImageSVGNativeCoder.h" 21 | --------------------------------------------------------------------------------