https://github.com/sdwebimage/svgnative-xcode
Integrate svg-native-viewer library with Xcode project. Support Carthage && CocoaPods && SwiftPM.
https://github.com/sdwebimage/svgnative-xcode
Last synced: 5 months ago
JSON representation
Integrate svg-native-viewer library with Xcode project. Support Carthage && CocoaPods && SwiftPM.
- Host: GitHub
- URL: https://github.com/sdwebimage/svgnative-xcode
- Owner: SDWebImage
- Created: 2022-07-29T10:25:31.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-01-11T08:37:35.000Z (about 2 years ago)
- Last Synced: 2025-09-23T00:32:46.489Z (6 months ago)
- Language: Ruby
- Size: 137 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# svgnative + Xcode
[](https://travis-ci.org/SDWebImage/svgnative-Xcode)
[](http://cocoapods.org/pods/svgnative)
[](http://cocoapods.org/pods/svgnative)
[](http://cocoapods.org/pods/svgnative)
[](https://github.com/SDWebImage/svgnative-Xcode)
[](https://swift.org/package-manager/)
A wrapper for [svg-native](https://github.com/adobe/svg-native-viewer) + Xcode project.
This enables Carthage && SwiftPM support.
This repo also including the CocoaPods's spec file to use svg-native.
## Requirements
+ iOS 9
+ macOS 10.10
+ tvOS 9.0
+ watchOS 2.0
## Note
Because the upstream does not have tagged version. We release version by ourselves.
+ 0.1.0-beta: d234cff
+ 0.1.0: e091851
## Installation
### Carthage
svgnative is (via this repo) available through [Carthage](https://github.com/Carthage/Carthage).
```
github "SDWebImage/svgnative-Xcode"
```
### CocoaPods
svgnative is available through [CocoaPods](https://github.com/CocoaPods/CocoaPods).
```
pod 'svgnative'
```
### SwiftPM
svgnative is available through [Swift Package Manager](https://img.shields.io/badge/SwiftPM-compatible-brightgreen.svg).
```swift
let package = Package(
dependencies: [
.package(url: "https://github.com/SDWebImage/svgnative-Xcode", from: "0.2.0")
],
// ...
)
```
## Usage
Use svgnative as you would normally, this is just a repo that adds an Xcode proj.
+ Objective-C++
```objective-c
#import
```
Note C++ module is C++20 standard and disabled for clang by default currently. Use header include instead.
+ Swift
```swift
import svgnative
```
## For C wrapper
Use the `svgnative/SVGNativeCWrapper.h` instead of C++ headers.
## License
svgnative is available under the [Apache License 2.0](https://github.com/adobe/svg-native-viewer/blob/main/LICENSE).