SVGUIView

0.16.1

An UIView that displays a single SVG image in your interface.
nnabeyang/SVGUIView

What's New

v0.16.1

2024-06-17T23:14:54Z

Fixes

  • Remove Non-public API

SVGUIView

An UIView that displays a single SVG image in your interface.

Usage

Creating a SVGUIView:

let data = Bundle.main.url(forResource: "example", withExtension: "svg")!
let svgView = SVGUIView(contentsOf: data)!
view.addSubView(svgView)

Installation

SwiftPM

Add the SVGUIView as a dependency:

let package = Package(
    // name, platforms, products, etc.
    dependencies: [
        // other dependencies
        .package(url: "https://github.com/nnabeyang/SVGUIView", from: "0.16.1"),
    ],
    targets: [
        .executableTarget(name: "<executable-target-name>", dependencies: [
            // other dependencies
                .product(name: "SVGUIView", package: "SVGUIView"),
        ]),
        // other targets
    ]
)

CocoaPods

Add the following to your Podfile:

pod 'SVGUIView'

License

SVGUIView is published under the MIT License, see LICENSE.

Author

Noriaki Watanabe@nnabeyang

Description

  • Swift Tools 5.9.0
View More Packages from this Author

Dependencies

Last updated: Sat Nov 16 2024 01:54:26 GMT-1000 (Hawaii-Aleutian Standard Time)