svgnative 0.1.0

svgnative 0.1.0

Maintained by DreamPiggy.



svgnative 0.1.0

  • By
  • adobe

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

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.

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.