Remove link property SVGLinearGradientServer and SVGRadialGradientServer
An UIView that displays a single SVG image in your interface.
Creating a SVGUIView:
let data = Bundle.main.url(forResource: "example", withExtension: "svg")! let svgView = SVGUIView(contentsOf: data)! view.addSubView(svgView)
Add the SVGUIView as a dependency:
SVGUIView
let package = Package( // name, platforms, products, etc. dependencies: [ // other dependencies .package(url: "https://github.com/nnabeyang/SVGUIView", from: "0.2.4"), ], targets: [ .executableTarget(name: "<executable-target-name>", dependencies: [ // other dependencies .product(name: "SVGUIView", package: "SVGUIView"), ]), // other targets ] )
Add the following to your Podfile:
pod 'SVGUIView'
SVGUIView is published under the MIT License, see LICENSE.
Noriaki Watanabe@nnabeyang
©Copyright 2023 CCF 开源发展委员会 Powered by Trustie& IntelliDE 京ICP备13000930号
SVGUIView
An UIView that displays a single SVG image in your interface.
Usage
Creating a SVGUIView:
Installation
SwiftPM
Add the
SVGUIView
as a dependency:CocoaPods
Add the following to your Podfile:
License
SVGUIView is published under the MIT License, see LICENSE.
Author
Noriaki Watanabe@nnabeyang