SVGUIView

0.16.0

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

What's New

v0.16.0

2024-04-01T23:53:52Z

Updates

  • Add support for font-size with units

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.0"),
    ],
    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: Fri May 03 2024 05:40:44 GMT-0900 (Hawaii-Aleutian Daylight Time)