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
Because the upstream does not have tagged version. We release version by ourselves.
- 0.1.0-beta: d234cff
- 0.1.0: e091851
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
Use the svgnative/SVGNativeCWrapper.h
instead of C++ headers.
svgnative is available under the Apache License 2.0.