Skip to content

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

License

Notifications You must be signed in to change notification settings

nnabeyang/SVGUIView

Repository files navigation

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.19.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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages