Skip to content

SDWebImage/svgnative-Xcode

main
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

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.

Requirements

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

Note

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

Installation

Carthage

svgnative is (via this repo) available through Carthage.

github "SDWebImage/svgnative-Xcode"

CocoaPods

svgnative is available through CocoaPods.

pod 'svgnative'

SwiftPM

svgnative is available through Swift Package Manager.

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++
#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.

License

svgnative is available under the Apache License 2.0.

About

Integrate svg-native-viewer library with Xcode project. Support Carthage && CocoaPods && SwiftPM.

Resources

Stars

Watchers

Forks

Packages

No packages published