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
Integrate svg-native-viewer library with Xcode project. Support Carthage && CocoaPods && SwiftPM.
⭐️ 0
🕓 15 weeks ago
iOS macOS watchOS tvOS
.package(url: "https://github.com/SDWebImage/svgnative-Xcode.git", from: "0.1.0")

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.

GitHub

link
Stars: 0
Last commit: 15 weeks ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

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