SVGView
SVGView copied to clipboard
Code samples do not work in Xcode 15
Trying to use SVGView to create simple shape according to sample code.
HStack {
let circle = SVGCircle(cx: 30, cy: 30, r: 30)
circle.fill = SVGColor.black // Type '()' cannot conform to 'View'
Same issue with view.getNode:
let view = SVGView(contentsOf: Bundle.main.url(forResource: "image", withExtension: "svg")!)
view.getNode(byId: "id-1")?.transform = CGAffineTransform(rotationAngle: 45 * .pi / 180)