Swiftpack.co - SDWebImage/svgnative-Xcode as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by SDWebImage.
SDWebImage/svgnative-Xcode 0.1.0-beta
Integrate svg-native-viewer library with Xcode project. Support Carthage && CocoaPods && SwiftPM.
⭐️ 0
🕓 1 week ago
iOS macOS watchOS tvOS
.package(url: "https://github.com/SDWebImage/svgnative-Xcode.git", from: "0.1.0-beta")

svgnative + Xcode

CI Status Version License Platform Carthage compatible SwiftPM compatible

A wrapper for svg-native + Xcode project. This enables Carthage && SwiftPM support.

This repo also including the CocoaPods's spec file to use svg-native.


  • iOS 9
  • macOS 10.10
  • tvOS 9.0
  • watchOS 2.0


The 0.1.0-beta version use the custom SHA, because the upstream does not have tagged version.



svgnative is (via this repo) available through Carthage.

github "SDWebImage/svgnative-Xcode"


svgnative is available through CocoaPods.

pod 'svgnative'


svgnative is available through Swift Package Manager.

let package = Package(
    dependencies: [
        .package(url: "https://github.com/SDWebImage/svgnative-Xcode", from: "0.2.0")
    // ...


Use svgnative as you would normally, this is just a repo that adds an Xcode proj.

  • Objective-C++
#import <svgnative/SVGRenderer.h>

Note C++ module is C++20 standard and disabled for clang by default currently. Use header include instead.

  • Swift
import svgnative

For C wrapper

Use the svgnative/SVGNativeCWrapper.h instead of C++ headers.


svgnative is available under the Apache License 2.0.


Stars: 0
Last commit: 1 week ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics